[[https://gist.github.com/repent/c95338c1dedca4b728381856b695c9df|Some rando's options]]. The ''library'' hash gets [[https://stackoverflow.com/questions/57719975/force-display-of-ticks-on-xaxes-using-chartkick-gem-and-chart-js|passed through]] ''Chartkick'' to ''chart.js''. For some reason axes need to be labelled ''xAxes'' (can be(?) an array for multiple x axes) rather than just ''x'' as [[https://www.chartjs.org/docs/latest/axes/cartesian/|in the chart.js docs]]. def model_helper(data) line_chart( data, title: 'Chart title', ## Axes min: 10, # default 0 if no non-zero points max: 100, xtitle: 'Time', ytitle: 'Lolz', ## CSS id: 'lolchart', ## Appearance height: '500px', colors: COLORS, points: false, # Key legend: :bottom, ## No idea why these have to be in a hash: library: { spanGaps: true, lineTension: 0.5, # Values between 0 and 1-ish seem to do something curve: true, # false = straight line segments scales: { xAxes: [{ display: false, ticks: { maxTicksLimit: 5, }, # Can't get anything else to work here } } } ) end