From ef1acfa0e85f5b2d5aca473eb5027b91f89d6fb1 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Mon, 15 Jun 2015 23:54:25 -0600 Subject: [PATCH] Build single scales in core --- src/core/core.controller.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 694af7661..562978f13 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -121,6 +121,20 @@ this.scales[scale.id] = scale; }, this); } + + if (this.options.scale) { + // Build radial axes + var ScaleClass = Chart.scaleService.getScaleConstructor(axisOptions.type); + var scale = new ScaleClass({ + ctx: this.chart.ctx, + options: axisOptions, + data: this.data, + id: axisOptions.id, + chart: this.chart, + }); + + this.scale = scale; + } } Chart.scaleService.fitScalesForChart(this, this.chart.width, this.chart.height); -- 2.47.3