PDA

View Full Version : Adding a currency symbol to numbers


djogrady376174
05-15-2010, 11:06 PM
Is it possible to add a currency symbol (such as a "$" sign) to numbers in a chart created with Dynamic Web Charts, and if so, how do I do it?

Eric Mittman
05-17-2010, 11:46 AM
You can do this by going into the data files that are created and adding in the currency symbol. Open the page that is named after your chart with _data at the end of it. In here look for the value like this:

#val#

You can add in the currency symbol like this:

$#val#

psychobilly1165508
05-28-2010, 08:36 AM
I did not see this in the code = #val#

I added the "$", but the chart says "Undefined" after doing so.

<value>$<?php echo($row_WADWCorderdetails['YVALUE']); ?></value>

Where does the currency symbol go?

Eric Mittman
05-28-2010, 11:35 AM
Do you have a link where we can see the live chart? It would help to have a visual reference for where you are trying to add in the currency symbol.

Along with this please post back with the page that has the chart on it and your DynamicWebCharts folder from your site in a zip archive. I will use the link and your files to see where to add this for you and let you know.

psychobilly1165508
05-28-2010, 11:49 AM
I've attached a screenshot of the chart and a zip of the folder.

The file in question is cms-sales_data1.php.

thanks

Eric Mittman
06-01-2010, 03:53 PM
In the data page for the current charge look for the value tag, then add in this tooltip just after it like this:


<value><?php echo($row_WADWCorders['YVALUE']); ?></value>
<tooltip><![CDATA[#x_label#<br>$#val# ]]></tooltip>


Please give this a try, and let us know if it does not work for you. If you have any further trouble with this it would help us if we had a link to the live chart.