How to use the tui-chart.mapChart function in tui-chart

To help you get started, we’ve selected a few tui-chart examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nhn / tui.chart / test / types / mapChart.ts View on Github external
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,