Using & Sign on chart |
|
When using dataURL method |
If you're using dataURL method, you can directly embed the & character in your XML and then use it as under: |
<chart caption='Total of 2003 & 2004' > <set label='John' value='420' /> <set label='Mary' value='295' /> <set label='Tom' value='523' /> </chart> |
You'll now get the following output: |
When using dataXML method |
When using dataXML method, you need to encode & character to %26 - else, you'll get an error on many browsers. Following is the full HTML Code to embed the chart: |
<div id="chart1div"> |
You'll again get the same output as before. |