Home Forums Chart Support How to preserve zeros after decimal point in tooltip? Reply To: How to preserve zeros after decimal point in tooltip?

#22953

@ethicalsector,

When you use “#” in the format-string, it replaces the “#” symbol with the corresponding digit if one is present; otherwise, no digit appears in the result string whereas when you use “0” in format-string it replaces the zero with the corresponding digit if one is present; otherwise, zero appears in the result string. According to the options / documentation, setting yValueFormatString to “#,##0.0” should let you display 0.9 instead of .9 in toolTip/indexLabel.

Please refer yValueFormatString for all available options.


Vishwas R
Team CanvasJS