ZingChart: I can't seem to figure out how to format values to 2 decimal places. Is this possible?

You can apply a precision count to all numeric values on the chart using the decimals attribute in the globals object.

globals:{
  decimals:1
}...

If you want to apply decimal precision to only a specific portion of the chart you would apply the decimals attribute to the object you want to modify. Lets use valueBox.

plot:{
  valueBox:{
    decimals:1
  }...
}...

To see the difference between the two examples, hover over then nodes and look at the value above the bar.

Relative Documentation

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us