Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

how to use fusion charts in windows application.

Regards
Aravind G
Posted

1 solution

XML
string appPath = "file:///" + Application.StartupPath + "\\Fusion\\FCF_Pie2D.swf";
          //string appPath = "file:///" + Application.StartupPath + "\\Column2D.swf";
//replace all "\" in the path with "/"
appPath = appPath.Replace("\\", "/");

string ChartXML = appPath + @"?dataXML=<graph Caption='Monthly Sales Summary'   showvalues='1'   exportFormats='PNG=Save as PNG' >
      <set name='Jan' value='17400' isSliced='1'  />
      <set name='Feb' value='1980' color='F6BD0F'  />
      <set name='Mar' value='21800' />
      <set name='Apr' value='2380' color='D64646'/>
      <set name='May' value='29600' />
      <set name='Jun' value='2760' />
      <set name='Jul' value='31800' />
      <set name='Dec' value='3980' />
</graph>&registerwithjs=1";
string XML = ChartXML.Replace("'", "\"");
System.Diagnostics.Debug.WriteLine(XML);
ChartContainer.Movie = XML;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900