Skip to content

Instantly share code, notes, and snippets.

@nttuyen
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nttuyen/b346dd60a98a3c686c80 to your computer and use it in GitHub Desktop.
Save nttuyen/b346dd60a98a3c686c80 to your computer and use it in GitHub Desktop.
nttuyen_charts
config: {
title: "Biểu đồ về cái gì đó",
width: 900, // Độ rộng biểu đồ
height: 400, // Chiều cao biểu đồ
groupWidth: 0, // Dộ rộng cột của biểu đồ
isStacked: false
},
columns: ['Cột 1', 'Cột 2'],
data: [
['2014', 10, 12],
['2013', 9, 17],
['2017', 11, 20]
],
columnConfigs: {
}
config: {
title: "Biểu đồ về cái gì đó",
width: 900, // Độ rộng biểu đồ
height: 400, // Chiều cao biểu đồ
groupWidth: 0, // Dộ rộng cột của biểu đồ
isStacked: false
},
columns: ['Cột 1', 'Cột 2', 'Cột 3'],
data: [
['2014', 10, 12, 2],
['2013', 9, 17, 8],
['2017', 11, 20, 9]
],
columnConfigs: {
1: {
type: 'line',
isShowLabel: true,
color: '#00FFEE',
axis: 1,
}
}
config: {
title: "Biểu đồ về cái gì đó",
width: 900, // Độ rộng biểu đồ
height: 400, // Chiều cao biểu đồ
groupWidth: 0, // Dộ rộng cột của biểu đồ
isStacked: false
},
columns: ['Cột 1', 'Cột 2', 'Cột 3'],
data: [
['2014', 10, 12, 2],
['2013', 9, 17, 8],
['2017', 11, 20, 9]
],
columnConfigs: {
}
{
config: {
title: "Lượng khách du lịch quốc tế đến Việt Nam năm 2014",
width: 1200, // Độ rộng biểu đồ
height: 600, // Chiều cao biểu đồ
groupWidth: 0, // Dộ rộng cột của biểu đồ
isStacked: false
},
columns: ['Lượt người'],
data: [
['Tháng 1', 722349, '722.349'],
['Tháng 2', 842026, '842.026'],
['Tháng 3', 709725, '709.725'],
['Tháng 4', 745980, '745.980'],
['Tháng 5', 674204, '674.204'],
['Tháng 6', 539776, '539.776'],
['Tháng 7', 564736, '564.736'],
['Tháng 8', 618588, '618.588'],
['Tháng 9', 590881, '590.881'],
['Tháng 10', 590881, '590.881'],
['Tháng 11', 608617, '608.617'],
['Tháng 12', 657304, '657.304']
],
columnConfigs: {
}
}
@nttuyen
Copy link
Author

nttuyen commented Dec 23, 2014

Test comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment