2012-02-06, 19:41:47
hi,
for my work I need to create a business dashboard. I have installed Gsimple like cms and I create charts with "fusionchart free". Fusioncharts need to have xml data.
I think I have a problem with data.xml permission.
My example:
Edit Page --- HTML Source
My code
<!-- begin FusionCharts include files -->
<script type="text/javascript" src="JavaScripts/FusionCharts.js"></script>
<script type="text/javascript" src="JavaScripts/FusionChartsDOM.js"></script>
<!-- end FusionCharts include files -->
<<!-- FIRST CHART - XML DATA INTEGRATED -->
<fusioncharts charttype="Column3D"> <data><!--[CDATA[
<graph caption="Annual Sales Summary" subcaption="For the period of 2004 to 2007"
xAxisName="Year" yAxisName="Sales" numberPrefix="$">
<set name="2004" value="37800" color='F6BD0F' />
<set name="2005" value="21900" color='8BBA00' />
<set name="2006" value="32900" color='FF8E46' />
<set name="2007" value="39800" color='008E8E' />
</graph>
]]--></data> </fusioncharts>
<<!-- SECOND CHART - XML EXTERNAL DATA -->
<fusioncharts charttype="Column3D" dataurl="Dashboard/datasource.xml"> </fusioncharts>
for complete information, datasource.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<graph caption="Annual Sales Summary" subcaption="For the period of 2004 to 2007"
xAxisName="Year" yAxisName="Sales" numberPrefix="$">
<set name="2004" value="37800" color='F6BD0F' />
<set name="2005" value="21900" color='8BBA00' />
<set name="2006" value="32900" color='FF8E46' />
<set name="2007" value="39800" color='008E8E' />
</graph>
The first chart works, the second charts don't works
for my work I need to create a business dashboard. I have installed Gsimple like cms and I create charts with "fusionchart free". Fusioncharts need to have xml data.
I think I have a problem with data.xml permission.
My example:
Edit Page --- HTML Source
My code
<!-- begin FusionCharts include files -->
<script type="text/javascript" src="JavaScripts/FusionCharts.js"></script>
<script type="text/javascript" src="JavaScripts/FusionChartsDOM.js"></script>
<!-- end FusionCharts include files -->
<<!-- FIRST CHART - XML DATA INTEGRATED -->
<fusioncharts charttype="Column3D"> <data><!--[CDATA[
<graph caption="Annual Sales Summary" subcaption="For the period of 2004 to 2007"
xAxisName="Year" yAxisName="Sales" numberPrefix="$">
<set name="2004" value="37800" color='F6BD0F' />
<set name="2005" value="21900" color='8BBA00' />
<set name="2006" value="32900" color='FF8E46' />
<set name="2007" value="39800" color='008E8E' />
</graph>
]]--></data> </fusioncharts>
<<!-- SECOND CHART - XML EXTERNAL DATA -->
<fusioncharts charttype="Column3D" dataurl="Dashboard/datasource.xml"> </fusioncharts>
for complete information, datasource.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<graph caption="Annual Sales Summary" subcaption="For the period of 2004 to 2007"
xAxisName="Year" yAxisName="Sales" numberPrefix="$">
<set name="2004" value="37800" color='F6BD0F' />
<set name="2005" value="21900" color='8BBA00' />
<set name="2006" value="32900" color='FF8E46' />
<set name="2007" value="39800" color='008E8E' />
</graph>
The first chart works, the second charts don't works