1👍
Yes you can actually do that. You want the horizontal marker line so you need to add this code inside your y-axis
plotLines: [{
color: '#FF0000',
width: 2,
value: .50 * 200 // The marker value will be 100
// Or you can just set its value to 100
}]
- [Chartjs]-Set a limit / max number for legends
- [Chartjs]-How can I make a stepline or stepped chart in chart.js or D3?
Source:stackexchange.com