How to use the tui-chart.registerTheme 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 / comboChart.ts View on Github external
// LineScatterComboChart
const elLineScatterCombo = document.querySelector('.section[data-section="chart"] .lineScatterCombo');

const theme6 = {
    series: {
        scatter: {
            colors: ['#ffb840']
        },
        line: {
            colors: ['#785fff']
        }
    }
};

tuiChart.registerTheme('theme6', theme6);

const lineScatterData = {
    series: {
        scatter: [
            {
                name: 'Efficiency',
                data: [
                    { x: 10, y: 20 },
                    { x: 14, y: 30 },
                    { x: 18, y: 10 },
                    { x: 20, y: 30 },
                    { x: 24, y: 15 },
                    { x: 25, y: 25 },
                    { x: 26, y: 5 },
                    { x: 30, y: 35 },
                    { x: 34, y: 15 },
github nhn / tui.chart / test / types / comboChart.ts View on Github external
pointOnColumn: true
    },
    xAxis: {
        title: 'Month',
        tickInterval: 'auto'
    },
    series: {
        zoomable: true
    },
    tooltip: {
        suffix: 'kWh'
    },
    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);
github nhn / toast-ui.react-chart / stories / barChart / barChart.stories.js View on Github external
const Story = () => {
    if (theme === themeOptions.myTheme) {
      TuiChart.registerTheme('myTheme', myTheme);
      options.theme = 'myTheme';
    }

    return ;
  };
github nhn / toast-ui.react-chart / stories / bulletChart / bulletChart.stories.js View on Github external
const Story = () => {
    if (theme === themeOptions.myTheme) {
      TuiChart.registerTheme('myTheme', bulletChartTheme);
      options.theme = 'myTheme';
    }

    return ;
  };
github nhn / toast-ui.react-chart / stories / areaChart / areaChart.stories.js View on Github external
const Story = () => {
    if (theme === themeOptions.myTheme) {
      TuiChart.registerTheme('myTheme', commonTheme);
      options.theme = 'myTheme';
    }

    return ;
  };
github nhn / toast-ui.react-chart / stories / treeMapChart / treeMapChart.stories.js View on Github external
const Story = () => {
    if (theme === themeOptions.myTheme) {
      TuiChart.registerTheme('myTheme', treeMapChartTheme);
      options.theme = 'myTheme';
    }

    return ;
  };
github nhn / toast-ui.react-chart / stories / lineChart / lineChart.stories.js View on Github external
const Story = () => {
    if (theme === themeOptions.myTheme) {
      TuiChart.registerTheme('myTheme', commonTheme);
      options.theme = 'myTheme';
    }

    return ;
  };
github nhn / toast-ui.react-chart / stories / radialChart / radialChart.stories.js View on Github external
const Story = () => {
    if (theme === themeOptions.myTheme) {
      TuiChart.registerTheme('myTheme', commonTheme);
      options.theme = 'myTheme';
    }

    return ;
  };
github nhn / toast-ui.react-chart / stories / mapChart / mapChart.stories.js View on Github external
const Story = () => {
    if (theme === themeOptions.myTheme) {
      TuiChart.registerTheme('myTheme', mapChartTheme);
      options.theme = 'myTheme';
    }

    return ;
  };
github nhn / toast-ui.react-chart / stories / columnChart / columnChart.stories.js View on Github external
const Story = () => {
    if (theme === themeOptions.myTheme) {
      TuiChart.registerTheme('myTheme', commonTheme);
      options.theme = 'myTheme';
    }

    return ;
  };