is there any way to get the coordinates for the labels in the radar chart? I'm trying to put images instead of text in the labels area.
Asked
Active
Viewed 1,587 times
1 Answers
4
You can calculate it using the scale property. Here is something that draws a blue circle at those points after the animation completes.
onAnimationComplete: function () {
for (var i = 0; i < this.scale.valuesCount; i++) {
// get the poitn position
var pointLabelPosition = this.scale.getPointPosition(i, this.scale.calculateCenterOffset(this.scale.max) + 5);
// draw a circle at that point
this.chart.ctx.beginPath();
this.chart.ctx.arc(pointLabelPosition.x, pointLabelPosition.y, 5, 0, 2 * Math.PI, false);
this.chart.ctx.fillStyle = '#77e';
this.chart.ctx.fill();
this.chart.ctx.stroke();
}
}
Fiddle - http://jsfiddle.net/1jgmbyb7/

potatopeelings
- 40,709
- 7
- 95
- 119
-
Works like a charm, Thanks a lot!! – RoO Jul 16 '15 at 17:37