1

I found this answer to the question above, which works for Chart.js v2.0 beta but, for other reasons, I have to use at least v2.6.0. Does anyone have any insight as to how this style of solution could be implemented in this newer version? Is this something that could be implemented using a plugin?

Karl Lloyd
  • 21
  • 3
  • Actually, found a way to do it: see [this fiddle](http://jsfiddle.net/8xw8J/1158/). However, there must be more elegant ways to get the ticks/axis labels than `points[0]._xScale.ticks`, and similarly there must be a better way to get the bare data array rather than calling `this._data` on the controller. If anybody with some insight knows, that would be useful. – Karl Lloyd Aug 03 '17 at 15:28
  • Update: [this](http://jsfiddle.net/8xw8J/1164/) is reasonable, but a better method than `var scale = this.chart.scales['x-axis-'+datasetIndex] || this.chart.scales['x-axis-0']` would be good. – Karl Lloyd Aug 03 '17 at 16:07
  • 1
    Sorted: [decent working version](http://jsfiddle.net/8xw8J/1167/). Hope this helps someone else. – Karl Lloyd Aug 03 '17 at 20:16

0 Answers0