Commit
fde5350920af09d9bc8c42a094ef6e40ab50da43
by Fritz SchinkelCharts: fix numeric tick labels
chart.js creates a CategoryScale if labels are set directly on the data.
The CategoryScale itself registers a ticks callback which is overridden
if the labels need to be reformatted. The original callback calls
CategoryScale.getLabelForValue. If the formatters are passed as bound
functions there is no access to the scale and therefore, no access to
CategoryScale.getLabelForValue. Therefore, pass the formatter functions
wrapped in an unbound function that extracts the renderer and the scale.
This function then calls the formatter as it was bound to the renderer
and passes the scale as an argument. The formatters then use the scale
to call CategoryScale.getLabelForValue before custom formatting.
Fix empty label for numeric columns in ChartTableControl.
379927
(commit: fde5350)