Chart-options not registering scaleStartValue

0👍

You’ll find in the Chart.js Documentation, under Global chart configuration, that it requires scaleOverride: false to be set to true.

// Boolean - If we want to override with a hard coded scale
scaleOverride: false,

// ** Required if scaleOverride is true **
// Number - The number of steps in a hard coded scale
scaleSteps: null,
// Number - The value jump in the hard coded scale
scaleStepWidth: null,
// Number - The scale starting value
scaleStartValue: null,

With that in mind:

<div class="chart chart-line" chart-options="{scaleOverride:true,scaleStartValue:0,bezierCurve:false}"> </div>

Leave a comment