[Chartjs]-Y=0 gridline (or axis?) not showing in chart.js

1👍

It turns out the black background was hiding the zero axis color. I fixed it by adding the zeroLineColor: ‘white’ option under scales under yAxes like so:

scales: {
                yAxes: [{
                    display: true,
                    gridLines: {
                        color: 'gray',
                        zeroLineColor: 'white'
                    }
                }],

Leave a comment