javascript - Chart.js Radar Labels Coordenates -


is there way coordinates labels in radar chart? i'm trying put images instead of text in labels area.

best regards.

you can calculate using scale property. here draws blue circle @ points after animation completes.

onanimationcomplete: function () {     (var = 0; < this.scale.valuescount; i++) {         // poitn position         var pointlabelposition = this.scale.getpointposition(i, this.scale.calculatecenteroffset(this.scale.max) + 5);          // draw circle @ 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/


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -