Jump to content
Software FX Community

how to create chart fx with flash format


Recommended Posts

  • 2 weeks later...

To properly render the Chart as Flash, you need to call the setOutputWriter() function. Below, please find the sample code I used to test your issue:

<%@page import="SoftwareFX.ChartFX.*"%>



<title>Stacked Column Chart</title>




ChartServer chart1 = new ChartServer(application,request,response);

java.util.Random r = new java.util.Random(1);


// Populating the chart1 with random data

chart1.openData(COD.VALUES, 4, 8);

for (int i=0;i<4;i++)

for (int j=0;j<8;j++)

chart1.getValue().setItem(i, j, r.nextDouble() * 20);



chart1.setOutputWriter(new SoftwareFX.ChartFX.FlashWriter());





Notice the call to the setOutputWriter() function, and how I specify in the getHtmlTag that I want to render the Chart as Flash. Additionally, you may have to change the Security settings of your Internet Browser in order to download the ActiveX Control (Flash).

Link to comment
Share on other sites


Take a look at the following sample: 

<%ChartServer chart1 = new ChartServer(pageContext,request,response);chart1.setWidth(600);chart1.setHeight(400);chart1.getImageSettings().setInteractive(false);FlashWriter writer = new FlashWriter();chart1.setOutputWriter(writer);chart1.renderControl();%>



Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...