How to use the tui-chart.pieChart 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 meetzaveri / react-donut / src / lib / tui-wrapper.js View on Github external
showLabel: this.props.showChartLabel
      },
      tooltip: {
        suffix: "%"
      },
      legend: {
        align: this.props.legendAlignment
      }
    };
    var theme = this.props.chartThemeConfig;
    // tui.chart.registerTheme('newTheme', theme);
    // For apply theme
    tui.registerTheme("myTheme", theme);
    options.theme = "myTheme";

    tui.pieChart(container, data, options);
  }