FusionCharts Forum: Problem with plotting FCF_Line.swf - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem with plotting FCF_Line.swf

#1 User is offline   Knight 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 14-August 10

Posted 14 August 2010 - 10:06 AM

Hello,

I have generated a xml from my database but the line is above the chart.
It does have the right x-axis names but not the y-axis values.
I'm using the $strDataURL to get the XML data.
This is the generated XML if I run data.php alone:

<graph caption="Share prijs" xAxisName="Datum" yAxisName="Prijs" showNames="1" decimalPrecision="2" yAxisMinValue="8" yAxisMaxValue="14" decimalSeparator=",">

  <set name="05-11-2008" value="10,23" />
  <set name="05-12-2008" value="9,30" />
  <set name="05-01-2009" value="9,80" />
  <set name="05-02-2009" value="9,21" />
  <set name="06-07-2009" value="9,46" />
  <set name="05-08-2009" value="10,35" />
  <set name="07-09-2009" value="10,68" />
  <set name="05-10-2009" value="10,74" />
  <set name="05-11-2009" value="10,69" />
  <set name="07-12-2009" value="10,98" />
  <set name="05-01-2010" value="11,61" />
  <set name="05-02-2010" value="11,12" />
  <set name="05-03-2010" value="11,82" />
  <set name="06-04-2010" value="12,48" />
  <set name="06-05-2010" value="11,99" />
  <set name="07-06-2010" value="11,80" />
  <set name="05-07-2010" value="11,15" />
  <set name="05-08-2010" value="11,84" />
  </graph>
 
Can anyone tell me why it isn't showing as it's supposed to be.
 
deafault.php:
 
<?php
//We've included ../Includes/FusionCharts.php, which contains functions
//to help us easily embed the charts.
include("FusionCharts.php");
?>
<HTML>
<HEAD>
<TITLE> FusionCharts Free - dataURL and Database Example</TITLE>
<SCRIPT LANGUAGE="Javascript" SRC="FusionCharts.js"></SCRIPT>
</HEAD>
<BODY>
<?php
//In this example, we show how to connect FusionCharts to a database
//using dataURL method. In our previous example, we've used dataXML method
//where the XML is generated in the same page as chart. Here, the XML data
//for the chart would be generated in PieData.php.
//For the sake of ease, we've used an an MySQL databases containing two
//tables.
//the php script in piedata.php interacts with the database,
//converts the data into proper XML form and finally
//relays XML data document to the chart
$strDataURL = "data.php";
//Create the chart - Pie 3D Chart with dataURL as strDataURL
echo renderChart("FCF_Line.swf", $strDataURL, "", "test", 650, 450);
?>
</BODY>
</HTML>
 
Thanks ! 

0

Other Replies To This Topic

#2 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 16 August 2010 - 04:31 AM

Hi,

Welcome to FusionCharts forum. :)

Please try using '.' instead of ',' in the value attribute of the <set> element.

Ref.- <set name="05-11-2008" value="10.23" />

Hope this helps.

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

#3 User is offline   Knight 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 14-August 10

Posted 16 August 2010 - 12:01 PM

Hi,

Thanks for the welcome.

I already tried that and also changed the date format to Y-M-D, but both of the changes don't work.
Any other thoughts ?

Thanks !

0

Other Replies To This Topic

#4 User is offline   Sanjukta 

  • Supreme Being
  • Group: Administrators
  • Posts: 1664
  • Joined: 15-March 10

Posted 16 August 2010 - 11:53 PM

Hi,

Could you please try setting the value for the attribute "decimalSeparator" to '.' instead of ',' in the <graph> element?

Also, please refer to the modified format of your XML file in order to get the chart rendered.

Hope this helps. :)

Attached File(s)

  • Attached File  Data.xml (977bytes)
    Number of downloads: 52

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thanks,
Sanjukta

Follow us @Twitter!
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic