Open saurabh-bhosale opened 5 years ago
I found that you can pass the callback method as a string and it put into the template as JS that executes
e.g.
<%= line_chart data, {scales: {yAxes: [{ticks: {callback: "function(value, index, values) { return value + '%'; }"}}]}} %>
@adampope in tooltips callbacks also work. thx
How do i use javascript userCallback for ticks in rails format?