[MIN] export to enable treeshaking charts

This commit is contained in:
Achilles Rasquinha 2018-03-18 00:00:45 +05:30
parent 907f106967
commit a86e072524

View File

@ -33,8 +33,10 @@ function getChartByType(chartType = 'line', parent, options) {
return new chartTypes[chartType](parent, options); return new chartTypes[chartType](parent, options);
} }
export default class Chart { class Chart {
constructor(parent, options) { constructor(parent, options) {
return getChartByType(options.type, parent, options); return getChartByType(options.type, parent, options);
} }
} }
export { Chart, PercentageChart, PieChart, Heatmap, AxisChart }