diff --git a/dist/frappe-charts.esm.js b/dist/frappe-charts.esm.js index 6cb19ac..b1770c3 100644 --- a/dist/frappe-charts.esm.js +++ b/dist/frappe-charts.esm.js @@ -267,6 +267,10 @@ const DEFAULT_COLORS = { heatmap: HEATMAP_COLORS }; +/** + * Returns the value of a number upto 2 decimal places. + * @param {Number} d Any number + */ function floatTwo(d) { return parseFloat(d.toFixed(2)); } @@ -1263,25 +1267,19 @@ class BaseChart { } makeContainer() { - this.container = $.create('div', { - className: 'chart-container', - innerHTML: `