Chartjs-ChartJS set default axis

0👍

http://jsfiddle.net/qsosLya0/

The trick is the following configuration options:

var lineChartOptions = {
  scaleOverride: true,
  scaleSteps: 4,
  scaleStepWidth: 25,
  scaleStartValue: 0,
  scaleLabel: "<%=value%>%"
};

Source: http://www.chartjs.org/docs/#getting-started-global-chart-configuration

Leave a comment