[MIN] export to enable treeshaking charts
This commit is contained in:
parent
907f106967
commit
a86e072524
@ -33,8 +33,10 @@ function getChartByType(chartType = 'line', parent, options) {
|
||||
return new chartTypes[chartType](parent, options);
|
||||
}
|
||||
|
||||
export default class Chart {
|
||||
class Chart {
|
||||
constructor(parent, options) {
|
||||
return getChartByType(options.type, parent, options);
|
||||
}
|
||||
}
|
||||
|
||||
export { Chart, PercentageChart, PieChart, Heatmap, AxisChart }
|
||||
Loading…
x
Reference in New Issue
Block a user