Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const mapOptions = {
chart: {
width: 900,
height: 700,
title: 'Population density of World (per γ’)',
format: '0.00'
},
map: 'world',
legend: {
align: 'bottom'
},
theme: 'theme4'
};
const mapChart = tuiChart.mapChart(elMap, data, mapOptions);
mapChart.chartType;
mapChart.className;
mapChart.on('load', () => {
mapChart.addData('Jan', [2000, 4000, 6000, 8000]);
});
mapChart.resetTooltipAlign();
mapChart.resetTooltipOffset();
mapChart.resetTooltipPosition();
mapChart.resize({
width: 500,
height: 400,
});
mapChart.setTooltipAlign('right bottom');
mapChart.setTooltipOffset({
x: 50,