JavaScript
const data = [
{ month: '1월', sales: 320, growth: 0.05 },
{ month: '2월', sales: 345, growth: 0.07 },
{ month: '3월', sales: 360, growth: 0.06 },
{ month: '4월', sales: 410, growth: 0.12 },
{ month: '5월', sales: 395, growth: 0.09 },
{ month: '6월', sales: 440, growth: 0.13 },
{ month: '7월', sales: 470, growth: 0.15 },
{ month: '8월', sales: 455, growth: 0.11 },
{ month: '9월', sales: 500, growth: 0.16 },
{ month: '10월', sales: 520, growth: 0.18 },
{ month: '11월', sales: 505, growth: 0.14 },
{ month: '12월', sales: 560, growth: 0.21 }
];
const chart = new wijmo.chart.FlexChart('#salesChart', {
itemsSource: data,
bindingX: 'month',
chartType: 'Column',
legendToggle: true,
series: [
{ name: '매출액', binding: 'sales' },
{ name: '증감률', binding: 'growth', chartType: 'LineSymbols' }
]
});