Adding a currency symbol to numbers
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?
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?
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#
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?
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.
I've attached a screenshot of the chart and a zip of the folder.
The file in question is cms-sales_data1.php.
thanks
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.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.