I'm building a stacked bar chart in chart.js and trying to make the zero point line (the point at which forest loss is at zero for each decade) darker / more obvious than the other horizontal grid lines. Is there an option for this? If not, how might I accomplish it with code?
Asked
Active
Viewed 154 times
1

mheavers
- 29,530
- 58
- 194
- 315
1 Answers
1
It's mentioned at the Styling section in the docs and it's called lineWidth.
This related question might also be helpful: Chart.js how to use scriptable options
options {
scales: {
y: {
grid: {
lineWidth: ({ tick }) => tick.value == 0 ? 10 : 1
}
}
}
}

Christopher
- 3,124
- 2
- 12
- 29