How to use the tui-chart.registerMap 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
import tuiChart from 'tui-chart';

tuiChart.registerMap('newMap', [
    {
        code: 'KR',
        name: 'South Korea',
        path: 'M835.13,346.53L837.55,350.71...',
        labelCoordinate: {
          x: 0.6,
          y: 0.7
        }
    }
]);

const elMap = document.querySelector('.section[data-section="chart"] .map');

const data = {
    series: [
        {