Sign in to follow this  
devnull

Multiple currencies/suffixes in one chart

Recommended Posts

He folks.

 

I have an "msline"-chart containing five datasets. The first three should have a €-sign appended to the values (which already works by using "numberSuffix=' €'". The last two should get the string "Pcs" appended. How can I do that? Is there a way to override numberSuffix for certain datasets?

 

Thank you very much for your help!

 

Share this post


Link to post
Share on other sites

Dear Nabajeet.

 

Thanks a lot for your reply. Unfortunately I still don't get it. Here's what I do.

 

Chart declaration:

$xml="<chart [....] subCaption='' showValues='0' useRoundEdges='1' showBorder='1' decimals='2' formatNumberScale='0' numberSuffix=' €' >"
$xml.="<categories><category label='1' />......</categories>";

First dataset:

$xml.="<dataset seriesname='Total'><set label='1' value='500' />[.....]</dataset>"; <- This shows as 500,00 €, which is just what I want here.

Fourth dataset:

$xml.="<dataset seriesname='XYZ' dashed='1'><set value='100' displayValue=' Pcs'/>[.....]</dataset> <- This still shows as 100,00 € which is NOT what I want. It should show as "100 Pcs". 

What am I doing wrong?

Share this post


Link to post
Share on other sites

Hi,

 

Please note that whatever you add in displayValue inside the set attribute shall overwrite the actual value being provided.

 

As such "<dataset seriesname='XYZ' dashed='1'><set value='100' displayValue=' Pcs'/> should show only ' Pcs' as value in the chart.

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