From a86e072524af867585099f2b2b2747f160478e70 Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Sun, 18 Mar 2018 00:00:45 +0530 Subject: [PATCH] [MIN] export to enable treeshaking charts --- src/js/chart.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/chart.js b/src/js/chart.js index f377f39..999b937 100644 --- a/src/js/chart.js +++ b/src/js/chart.js @@ -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 } \ No newline at end of file