Welcome Guest Search | Active Topics |

Issues with stringFormat in axis labels
paulusm
#1 Posted : Thursday, October 22, 2015 2:51:19 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/22/2015(UTC)
Posts: 3

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I am trying to dynamically adjust the number of decimal places shown in the axis labels. I have found if I simply set the labels object to:

Code:
labels: { stringFormat: "%0.2f" }


I don't get what I want, but if I add a percent sign using

Code:
labels: { stringFormat: "%0.2f%%" }


then the number of decimal places is correct. Any idea as to why this would be?

Dragan
#2 Posted : Monday, October 26, 2015 6:30:02 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

labels: { stringFormat: "%0.2f" }, should export the labels as "5.66".
Is it possible to send us your full example, so we can investigate it?
Best Regards,
Dragan Matek
jqChart Inc.
paulusm
#3 Posted : Thursday, November 19, 2015 5:29:07 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/22/2015(UTC)
Posts: 3

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
We resolved the problem on our end. There wasn't an issue with jqChart. This thread can be removed/closed.
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.058 seconds.