chart.js - Charts.js polar area scales -


when charts.js (version: 2.1.3) renders polar area charts low data values scale drawn fractional values: example polar area chart

the fractions not make sense in context of data (student numbers). rather display scale of whole numbers, or no scale. have tried change chart options, looked @ , tested various examples, searched answers on site , elsewhere, no success yet. advice please?

example of code:

    var ml_chart_obj = new chart(ctx, {     type: "polararea",     data: {       datasets: [{           data: [0,1,0],           backgroundcolor: [               "rgba(060,186,084,0.6)"               ,"rgba(244,194,013,0.6)"               ,"rgba(219,050,054,0.6)"           ],           label: ""       }],       labels: [           "active, on target"           ,"unspecified start or end date"           ,"active, @ risk"       ]     },     options: {       scales: {          xaxes: [{          display:false          }]       },       legend: {         display: false       }     } }); 

a little late, how it.

options{     scale: {         ticks: {             stepsize: 1         }     } } 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -