Jump to content

Fusion Charts in java


bninan

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi

You can get the html, javascript code for embedding the FusionCharts chart in java using the following line of code:

 

String chartStr = FusionChartsHelper.createChart( "FusionCharts/Column2D.swf", "Data/Data.xml", "", "xmlurl", "ChartFromServlet", "600", "300", false, false);

This html can then be inserted in any page.

The FusionChartsHelper class has to be imported from com.fusioncharts package.

You can find this class in the jar files present in the FusionCharts download package.

Hope you find this information useful.

regards,
Srividya Sharma

 

Code:
String chartStr = FusionChartsHelper.createChart( "FusionCharts/Column2D.swf", "Data/Data.xml", "", "xmlurl", "ChartFromServlet", "600", "300", false, false);
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...