Home Forums Chart Support Float y axis labels on top of scrolling chart Reply To: Float y axis labels on top of scrolling chart

#60656

I tried to drop the necessary code into a existing javascript canvas.js project and I am getting an error.

TypeError: Cannot read properties of undefined (reading ‘0’)

I believe this section is throwing an error. Have you seen this before?

`
var axisWidth =
stockChart.charts[0].axisY[0].bounds.x2 +
stockChart.charts[0].axisY[0].get(‘tickLength’);
var axisHeight =
stockChart.charts[0].height –
stockChart.charts[0].axisY[0].bounds.y1;
`