bninan Posted November 24, 2010 Share Posted November 24, 2010 Hi,Does anybody know how to include fusion charts in java?I want to create a report with a chart using java code.How do I include the chart using java?Thanks. Link to comment Share on other sites More sharing options...
srividya_sharma Posted December 1, 2010 Share Posted December 1, 2010 HiYou 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now