How to use the tui-chart.areaChart 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 / toast-ui.react-chart / src / base.js View on Github external
import React from 'react';
import TuiChart from 'tui-chart';

const creator = {
  bar: TuiChart.barChart,
  column: TuiChart.columnChart,
  line: TuiChart.lineChart,
  area: TuiChart.areaChart,
  bubble: TuiChart.bubbleChart,
  scatter: TuiChart.scatterChart,
  pie: TuiChart.pieChart,
  combo: TuiChart.comboChart,
  map: TuiChart.mapChart,
  heatmap: TuiChart.heatmapChart,
  treemap: TuiChart.treemapChart,
  radial: TuiChart.radialChart,
  boxplot: TuiChart.boxplotChart,
  bullet: TuiChart.bulletChart
};

export default function(chartType) {
  return class ChartFactory extends React.Component {
    rootEl = React.createRef();
    chartInst = null;