Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
theme: 'theme5'
};
tuiChart.registerTheme('theme5', {
series: {
area: {
colors: ['#ffb840']
},
line: {
colors: ['#785fff']
}
}
});
const lineAreaComboChart = tuiChart.comboChart(elLineAreaCombo, lineAreaRowData, lineAreaComboOptions);
console.group('LineAreaComboChart');
console.log(lineAreaComboChart);
console.log('chartType: ', lineAreaComboChart.chartType);
console.log('chartTypes: ', lineAreaComboChart.chartTypes);
console.log('className : ', lineAreaComboChart.className);
console.log('getCheckedLegend : ', lineAreaComboChart.getCheckedLegend());
console.groupEnd();
// LineScatterComboChart
const elLineScatterCombo = document.querySelector('.section[data-section="chart"] .lineScatterCombo');
const theme6 = {
series: {
scatter: {
colors: ['#ffb840']
},
yAxis: {
title: 'Percentage (%)'
},
xAxis: {
title: 'Temperature (C)'
},
series: {
line: {
spline: true
}
}
};
(lineScatterOptions as any).theme = 'theme6';
const lineScatterChart = tuiChart.comboChart(elLineScatterCombo, lineScatterData, lineScatterOptions);
console.group('LineScatterComboChart');
console.log(lineScatterChart);
console.log('chartType: ', lineScatterChart.chartType);
console.log('chartTypes: ', lineScatterChart.chartTypes);
console.log('className : ', lineScatterChart.className);
console.log('getCheckedLegend : ', lineScatterChart.getCheckedLegend());
console.groupEnd();
// PieDonutComboChart
const elPieDonutCombo = document.querySelector('.section[data-section="chart"] .pieDonutCombo');
const data2 = {
categories: ['Browser'],
seriesAlias: {
pie1: 'pie',
pie2: 'pie'
xAxis: {
title: 'Month'
},
series: {
line: {
showDot: true
}
},
tooltip: {
grouped: true,
suffix: 'Β°C'
}
};
const columnNLineChart = tuiChart.comboChart(elColumnLineCombo, data, columnAndLineOptions);
console.group('ColumnLineChart');
console.log(columnNLineChart);
console.log('chartType: ', columnNLineChart.chartType);
console.log('chartTypes: ', columnNLineChart.chartTypes);
console.log('className : ', columnNLineChart.className);
console.log('yAxisOptions : ', columnNLineChart.yAxisOptions);
console.log('getCheckedLegend : ', columnNLineChart.getCheckedLegend());
console.groupEnd();
columnNLineChart.addPlotBand({
range: [['Aug', 'Sep']],
color: '#48a0ff',
opacity: 0.15
});
columnNLineChart.addPlotLine({
value: 'Sep',
pie2: {
radiusRange: ['70%', '100%'],
labelAlign: 'outer',
showLegend: true
}
},
legend: {
visible: true
},
tooltip: {
suffix: '%'
},
theme: 'theme3'
};
const pieNDonutChart = tuiChart.comboChart(elPieDonutCombo, data2, pieNDonutOptions);
console.group('PieDonutComboChart');
console.log(pieNDonutChart);
console.log('chartType: ', pieNDonutChart.chartType);
console.log('chartTypes: ', pieNDonutChart.chartTypes);
console.log('className : ', pieNDonutChart.className);
console.log('getCheckedLegend : ', pieNDonutChart.getCheckedLegend());
console.groupEnd();