Julhas Sujan Report post Posted August 18, 2014 (edited) Hi, I am trying to export normal chart as jpg/png... by using fushion chart property. It is working fine. But when I am trying to export chart from linked chart then it is not working. Here is my code and chart: Can any1 help me how can i solve this problem? Thanks Julhas Edited August 18, 2014 by Julhas Sujan Share this post Link to post Share on other sites
Swarnam Report post Posted August 18, 2014 Hi Juhas, Can you try setting "exportEnabled" attribute as 1 in the descendant chart data? Share this post Link to post Share on other sites
Julhas Sujan Report post Posted August 18, 2014 Hi, Yes, I have added exportEnabled attribute. Thanks Share this post Link to post Share on other sites
Swarnam Report post Posted August 19, 2014 Hi, Can you let us know if the issue is still unresolved? Share this post Link to post Share on other sites
Julhas Sujan Report post Posted August 20, 2014 Hi, Yes. I can not slove this issue. Can u help me? Thanks Share this post Link to post Share on other sites
Swarnam Report post Posted August 20, 2014 Hi, Please find the XML attached where "exportEnabled" attribute has been enabled in parent and descendant chart? <chart caption="Yearly sales" xAxisName="Year" yAxisName="Sales" exportEnabled='1'> <set label="2004" value="37800" link="newchart-xml-2004-quarterly" /> <set label="2005" value="21900" link="newchart-xml-2005-quarterly" /> <linkeddata id="2004-quarterly"> <chart caption="Quarterly Sales Summary" subcaption="For the year 2004" xAxisName="Quarter" yAxisName="Sales" exportEnabled='1'> <set label="Q1" value="11700" /> <set label="Q2" value="8600" /> <set label="Q3" value="6900" /> <set label="Q4" value="10600" /> </chart> </linkeddata> <linkeddata id="2005-quarterly"> <chart caption="Quarterly Sales Summary" subcaption="For the year 2005" xAxisName="Quarter" yAxisName="Sales" exportEnabled='1'> <set label="Q1" value="5500" /> <set label="Q2" value="7100" /> <set label="Q3" value="3900" /> <set label="Q4" value="5400" /> </chart> </linkeddata> </chart> If issue is still unresolved, please share a scaled down sample to look into the issue. Share this post Link to post Share on other sites
Julhas Sujan Report post Posted August 20, 2014 Hi, My XML genersted by the following script: // Chart property $xml_output .= '<chart showBorder="0" caption="Yearly Sales" xAxisName="Year" yAxisName="Sales" exportEnabled="1" exportAtClient="1" exportHandler="fcExporter">'; $i=2004; while($a1=mysql_fetch_array($temp_count_data3)){ for($x2 = 0 ; $x2 < mysql_num_rows($temp_count_data2) ; $x2++) { $row2 = mysql_fetch_assoc($temp_count_data2); $qty=(integer)($row2['qty']); $xml_output .= "<set label='".$row2['ktext']."' value='".$row2['qty']."' link='newchart-xml-$i'/>\n"; $xml_output .="<linkeddata id='$i'>"; $xml_output .="<chart > <set label='".$row2['ktext']."' value='".$row2['qty']."' link='newchart-xml-$i'/>\n </chart> </linkeddata>"; $i++; } } $xml_output .= "</chart>\n"; echo $xml_output; ---------------------------------------------------------------------------------------------------------------------------------------------------- My XML looks like this: <?xml version="1.0"?><chart showBorder="0" caption="Yearly Sales" xAxisName="Year" yAxisName="Sales" exportEnabled="1" exportAtClient="1" exportHandler="fcExporter"><set label='Rangpur Area' value='58084.000' link='newchart-xml-2004'/><linkeddata id='2004'> <chart > <set label='Rangpur Area' value='58084.000' link='newchart-xml-2004'/> </chart></linkeddata><set label='Khulna Area' value='35424.000' link='newchart-xml-2005'/><linkeddata id='2005'><chart > <set label='Khulna Area' value='35424.000' link='newchart-xml-2005'/></chart></linkeddata><set label='Rajshahi Area' value='22724.000' link='newchart-xml-2006'/><linkeddata id='2006'><chart > <set label='Rajshahi Area' value='22724.000' link='newchart-xml-2006'/></chart></linkeddata><set label='Kustia Area' value='18418.000' link='newchart-xml-2007'/><linkeddata id='2007'><chart > <set label='Kustia Area' value='18418.000' link='newchart-xml-2007'/></chart></linkeddata><set label='Bogra Area' value='15028.000' link='newchart-xml-2008'/><linkeddata id='2008'><chart > <set label='Bogra Area' value='15028.000' link='newchart-xml-2008'/></chart></linkeddata><set label='Faridpur Area' value='12688.000' link='newchart-xml-2009'/><linkeddata id='2009'><chart > <set label='Faridpur Area' value='12688.000' link='newchart-xml-2009'/></chart></linkeddata><set label='Industrial Customers' value='11040.000' link='newchart-xml-2010'/><linkeddata id='2010'><chart > <set label='Industrial Customers' value='11040.000' link='newchart-xml-2010'/></chart></linkeddata><set label='Barisal Area' value='9459.000' link='newchart-xml-2011'/><linkeddata id='2011'><chart ><set label='Barisal Area' value='9459.000' link='newchart-xml-2011'/></chart></linkeddata><set label='Jessore Area' value='6656.000' link='newchart-xml-2012'/><linkeddata id='2012'><chart ><set label='Jessore Area' value='6656.000' link='newchart-xml-2012'/></chart></linkeddata></chart> Thanks Share this post Link to post Share on other sites
Swarnam Report post Posted August 20, 2014 Hi, Try this: // Chart property $xml_output .= '<chart showBorder="0" caption="Yearly Sales" xAxisName="Year" yAxisName="Sales" exportEnabled="1" exportAtClient="1" exportHandler="fcExporter">'; $i=2004; while($a1=mysql_fetch_array($temp_count_data3)){ for($x2 = 0 ; $x2 < mysql_num_rows($temp_count_data2) ; $x2++) { $row2 = mysql_fetch_assoc($temp_count_data2); $qty=(integer)($row2['qty']); $xml_output .= "<set label='".$row2['ktext']."' value='".$row2['qty']."' link='newchart-xml-$i'/>\n"; $xml_output .="<linkeddata id='$i'>"; $xml_output .="<chart exportEnabled="1" > <set label='".$row2['ktext']."' value='".$row2['qty']."' link='newchart-xml-$i'/>\n </chart> </linkeddata>"; $i++; } } $xml_output .= "</chart>\n"; Share this post Link to post Share on other sites
Julhas Sujan Report post Posted August 20, 2014 Ok thanks. I am trying. Share this post Link to post Share on other sites