Home forums Report Bugs yValueFormatString consider 0 as non value

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #6730

    It seems that yValueFormatString when using # as formater that 0 is considered as a non value. I assume this is the same for the other valueFormatStrings functions.

    Here is the fiddle: http://jsfiddle.net/TA9g5/2/

    See the first column. You would expect it to print 0.00 but instead it prints .00



    # is a placeholder for non-zero values. In case you want zero to be displayed, you should use “#0.##”. Here is a fiddle showing the same. http://jsfiddle.net/TA9g5/4/

    Sunil Urs


    Thanks though if I recall it says for the # formater in the docs “if a digit is present”. I suppose anything above a 0 is considered a digit and zero is not?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.