When I stretch my Scale like this
determineDataLimits: function () {
var min = Math.min.apply(null, this.chart.data.datasets[0].data)
console.log(this)
console.log(defaultConfigObject)
Chart.options.scales.rightSide.ticks.min = function () {
minValue + 5
return minValue
}
this.options.ticks.min = minValue
}
})
Chart.scaleService.registerScaleType('myScale', MyScale, defaultConfigObject)
However, when I apply this type in options for ticks, it results in a console error that says cannot read property of data undefined.
Additionally, when I log defaultConfigObject, it shows as undefined.
What should be used instead of defaultConfigObject?
I anticipate the chart rendering correctly so I can adjust where my line starts. Specifically, I want to position my line in the middle of the Y-axis on my combo line and bar diagram with dynamic data.
Environment
Chart.js version: vue