I have a line chart displaying the link below: https://i.sstatic.net/yUAHf.png
There is a noticeable gap between 0-0.7 on the chart. I am looking to add an indicator similar to the one shown in this image:
https://i.sstatic.net/pRjsY.png
The desired outcome would resemble this example: https://i.sstatic.net/IaqM5.png
When attempting to draw something on the ChartJs chart using annotations, I encountered difficulty setting intervals for drawing lines. Here's what I attempted:
annotation: {
annotations: [{
drawTime: 'afterDraw', // overrides annotation.drawTime if set
id: 'a-line-1', // optional
type: 'line',
mode: 'vertical',
scaleID: 'y-axis-0',
value: 0,
borderColor: '#000',
borderWidth: 2,
}]
}
Unfortunately, there are no accepted values like yMax and yMin when drawing lines, so I am unsure how to proceed. Any assistance with this issue would be greatly appreciated.
For reference, here is the Fiddle link: http://jsfiddle.net/3du6ya1c/