c3
c3 copied to clipboard
Formatting value labels displayed on chart
Is it currently possible to format the values displayed for the labels on the chart? If not, would it be easy to implement? For example, instead of .953362321 I might like to display .95. See the chart below for an example.
I added data.labels.format.y and data.labels.format.y2 options and I think you can use this for your purpose by setting a function returning formatted string.
I also added a sample, please check this: https://github.com/masayuki0812/c3/blob/master/htdocs/samples/data_label_format.html
Could you try these?
This looks great! Thank you sir!