Sign in to follow this  
rtibmx

Specify custom format of value for Grid?

Recommended Posts

Is there a way to specify a custom value for the grid (right-hand column)?

 

 

 

For example I want my output in the grid to look like this:

 

(color block) Item 1 20,000 (50%)

 

(color block) Item 2 10,000 (25%)

 

(color block) Item 3 10,000 (25%)

 

 

 

Instead what I am getting is this:

 

(color block) Item 1 20,000

 

(color block) Item 2 10,000

 

(color block) Item 3 10,000

 

 

 

So the raw, comma formatted numbers are good, but I want to add the % too next to the number inside of parentheses.

 

 

 

I don't mind calculating these rows myself and manually setting them. But when I try to set the value to a string it causes the column to go blank. So apparently it is expecting a number. Basically what I want to do is override these "smarts" from FusionCharts and instead manually feed it the values to display - in this case a custom formatted string that has the raw number and %.

 

 

 

Is this possible? Thanks!

Share this post


Link to post
Share on other sites
Rahul Kumar (3/3/2009)
Hi,
Could you please send us your XML, and please also let us knowthemethod (dataXML or dataURL)you are using?

 

 

 

I am feeding FusionCharts the XML by using the chart.setDataXML() JS function.

 

 

 

Here is the code. If it does not show up please hit the Quote post option so you can at least see it there:

 

 

 


 

 

 

Now the code above works as normal except it just shows the values formatted as a number. What I want to do is replace that with my own values. So for instance instead of value='492' for Item 1, I want to specify value='492 (25%)'. But when I do this the value column in the grid becomes blank.

 

 

 

How can I do this?

 

 

 

Thanks!

Edited by Guest

Share this post


Link to post
Share on other sites

Rahul - Also on another matter - I have posted a number of other questions (on different matters) over the past few days but these remain unanswered. I am trying to get approval to purchase FusionCharts but first need to resolve these matters. I am not sure if it takes several days to get a response or if the questions were missed. If you or someone from your support team can take a look at these and post replies I would greatly appreciate it. Thank you.

 

 

 

http://www.fusioncharts.com/forum/Topic12078-28-1.aspx

 

http://www.fusioncharts.com/forum/Topic12068-28-1.aspx

 

http://www.fusioncharts.com/forum/Topic12067-28-1.aspx

 

http://www.fusioncharts.com/forum/Topic12083-31-1.aspx

Share this post


Link to post
Share on other sites
rtibmx (3/3/2009)
Rahul Kumar (3/3/2009)
Hi,
Could you please send us your XML, and please also let us knowthemethod (dataXML or dataURL)you are using?

 

I am feeding FusionCharts the XML by using the chart.setDataXML() JS function.

 

Here is the code. If it does not show up please hit the Quote post option so you can at least see it there:

 


 

Now the code above works as normal except it just shows the values formatted as a number. What I want to do is replace that with my own values. So for instance instead of value='492' for Item 1, I want to specify value='492 (25%)'. But when I do this the value column in the grid becomes blank.

 

How can I do this?

 

Thanks!

 
I am a afraid it is not possible as of now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this