mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
Build radial scale details inside itself
This commit is contained in:
parent
4c749e78b2
commit
42648d0a83
@ -68,7 +68,13 @@
|
||||
|
||||
var LinearRadialScale = Chart.Element.extend({
|
||||
initialize: function() {
|
||||
this.height = this.chart.height;
|
||||
this.width = this.chart.width;
|
||||
this.xCenter = this.chart.width / 2;
|
||||
this.yCenter = this.chart.height / 2;
|
||||
this.size = helpers.min([this.height, this.width]);
|
||||
this.valuesCount = this.data.labels.length;
|
||||
this.labels = this.data.labels;
|
||||
this.drawingArea = (this.options.display) ? (this.size / 2) - (this.options.labels.fontSize / 2 + this.options.labels.backdropPaddingY) : (this.size / 2);
|
||||
},
|
||||
update: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user