srividya_sharma

Members
  • Content count

    943
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by srividya_sharma


  1. Hi

     

    I found this code in archives. Please try it out. I haven't tested it recently.

     

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

    StringBuffer chartHTML= new StringBuffer();

    chartHTML.append("<HTML>");

    chartHTML.append("<HEAD>");

    chartHTML.append("<TITLE>FusionCharts - Export Example</TITLE>");

     

    chartHTML.append("<script LANGUAGE='Javascript' SRC='FusionCharts/FusionCharts.js'></SCRIPT>");

     

    chartHTML.append("</HEAD>");

    chartHTML.append("<BODY>");

    chartHTML.append(" <CENTER>");

    chartHTML.append(" <h2>FusionCharts Example</h2>");

    chartHTML.append("<h4>From servlet</h4>");

    chartHTML.append(chartStr);

    chartHTML.append("<BR>");

     

    chartHTML.append("</CENTER>");

    chartHTML.append("</BODY>");

    chartHTML.append("</HTML>");

     

    PrintWriter out = response.getWriter();

    out.write(chartHTML.substring(0));

     

    The class FusionChartsHelper is present in com.fusioncharts package. Import it in your servlet.

     

    Hope this helps.


  2. Hello Ravi Krish,

    Please take a look at the ButtonExportExample at http://www.fusioncharts.com/forum/Topic27616-33-1.aspx#bm28873

    Please change the path to .swf, .jsp files, before testing.

    The server-side export is initiated from button click. You can modify it to initiate once the chart renders. [ by writing a FC_Rendered(DOMId) function ] like this:

    function FC_Rendered ( DOMId )
    {
    // invoke export on the chart here
    }
    

    Hope this helps :)


  3. Hi

    Welcome to FusionCharts JSP Forum!

    Please place the FusionCharts folder containing all the .swf files and other files in the root of your web application - outside WEB-INF.

    Also place Includes folder containing FusionChartsRenderer and other useful files in the root of your web application.

    You can find the Includes folder here:  Download Package > Code > JSP > Includes

    Please take a look at the documentation for the basic samples here:

    http://www.fusioncharts.com/free/docs/Contents/JSP_BasicExample.html

    Please take a look at the overall documentation here:

    http://www.fusioncharts.com/free/docs/ > Using with JSP section.

    Hope this helps you get started!

    I bet you will love this product once you get started!

    Srividya :)


  4. Hi everybody,

    Since the .class files provided with download package of FusionCharts was compiled with Java6

    and there seems to be  a need for Java5 compiled classes as well,

    I am attaching the class files which are compiled with Java5.

    Attachment Contains:

    Class files which ease the use of FusionCharts in Java

    Compiled with Java Version: jdk1.5

    As of FusionCharts version 3.1

    Hope this helps everybody! :)

    FusionChartsClasses_Java5.zip


  5. Hi

    I just took a look at your application.

    In FusionCharts Free

    1. the xml root element is <graph>

    2. the equivalent of label attribute of <set> element in Free version is name

    So, your xml would have to be:

    <graph caption='Monthly Sales Summary' subcaption='For the year 2006' xAxisName='Month' yAxisName='Sales' numberPrefix='$'>
    <set name='January' value='17400' />
    <set name='February' value='19800' />
    <set name='March' value='21800' />
    <set name='April' value='23800' />
    <set name='May' value='29600' />
    <set name='June' value='27600' />
    <set name='July' value='31800' />
    <set name='August' value='39700' />
    <set name='September' value='37800' />
    <set name='October' value='21900' />
    <set name='November' value='32900' />
    <set name='December' value='39800' />
    </graph>
    

    Please change this in Data.xml and see if it works.

    Srividya :D


  6. Hi

    Thanks for the sample application.

    Using the sample application, when I click on Test1 I get the chart with Test1 caption and I get chart with Test2 caption for the Test2 link. I am unable to replicate the problem in IE7. 

    I noticed that the width you are using is width="100%" . Please change it to a absolute width and test once.

    Could you please try this and tell me if it works?

    Srividya :)


  7. Hi everybody, :(

    FusionCharts for FileMaker v3 ( to be released soon) uses several advanced techniques so that YOU can create charts easily. If you have seen the useful tool, FusionCharts Configuration Tool in the previous version, then you would be happy to know that this tool is going to be the handle-it-all tool in the next release.

    Here, I would like to reveal one of the tricks used in the upcoming release of this tool. That's the Color Palette.

    Have you ever wanted to provide a Color Palette in your FileMaker database? If so, find out how it is being done in our FusionCharts for FileMaker v3.

    Please see the Color Palette demo that is attached.

    Hope you find this trick useful! :D

    Srividya :)

    FusionChartsColorPalette.zip


  8. Hi

    I appologize for the delay in responding. I hope you have solved your problem. If not, please take a look at the attached example.

    In this jsp, the export is invoked from the click of a button.

    The exportHandler is specified as FCExporter.jsp, for servlet implementation please change these attributes and the path to .swf, .jsp files, before testing.

    Hope this helps.

    Srividya :)

    ButtonExportExample.zip