1👍
✅
Full details of all of the options are at https://www.chartjs.org/docs/latest/axes/styling.html.
The general form is something like this:
<%= line_chart chart_path(@obj),
code: false,
points: false,
min: 0,
max: 20,
colors: ["#0284C7", "#44403C"],
height: '105px',
width: '175px',
library: {
scales: {
x: {
display: false,
},
y: {
display: true,
font: {
size: 6,
weight: 100
}
}
} %>
the display attributes indicate whether to show the grid or not.
0👍
The problem was the CDN I found was out of date. With the CDN from jsDelivr the grid lines show up. The time scale formatting is different, but assume fixable. So the answer was right or on the right path. Thank you.
Source:stackexchange.com