• Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by srividya_sharma

  1. FusionCharts Server-side Export Handler

    Hi Can you tell me which source code you need? Is it for the helper or tag library or exporter or servlet export handler? Thanks
  2. Export Chart To Excel

    Hi Vijaya, Please find the export examples in the sample application present in your download package. Download Package > Code > RoR > SampleApp http://localhost:3000/fusioncharts/index - lists all the examples. Browse to the section on Export examples. P.S. There is currently, no direct way to embed the chart as an image in Excel. Hope this helps!
  3. Gantt Chart Categorydata Objects?

    Hi I think you would get better responses if you post it in Jasper forums, if you have not already done. Just a suggestion Srividya
  4. Unable To Encode Buffered Image

    Hi Can you post the exact error from the logs? Thanks Srividya Sharma
  5. Problem With My Jsp Folder Structure In Netbeans

    Hi Can you send me a scaled-down ( maybe, one jsp with one chart ) version of your application in war format? This would help me analyze the path problem. Thanks Srividya Sharma
  6. Unable To Encode Buffered Image

    Yes, for linux you would have to use -Djava.awt.headless=true. Also, I think you may have to increase the memory size using -Xmx512m. Hope this works out for you. Srividya Sharma
  7. Fusioncharts Rails 3 Sample Application

    I have made modifications to the sample application to correct these errors. I have added the migrations and schema files so that the database migration issues are fixed. I have also modified the scripts to use lower case table names only. I am not sure about the error related to the Default External Encoding present in the environment.rb file. I am unable to replicate it. Anyway, I have commented it out. If you can provide me more details on the error you faced when this line was not commented, it would be helpful. Please find attached the latest Sample Application for Rails 3 with the above mentioned changes. Thanks Srividya Sharma Ask and get more from FusionCharts
  8. Fusioncharts Rails 3 Sample Application

    Currently, this is the mechanism followed by FusionCharts. We have to programmatically fill-in the missing values. Hope this clarifies. Srividya Sharma
  9. Issue - Error In Loading Data While Using Strxml In Jsp

    Hi Prashant You are most welcome. Glad to help out. Srividya Sharma
  10. Issue - Error In Loading Data While Using Strxml In Jsp

    Hi Prashant, On further investigation, I realized that there are a few modifications required in your code to get it to work. Here is a simple code snippet which works with the latest download: <%@page import="com.fusioncharts.FusionChartsHelper"%> <html> <body> <%-- chartId="myFirst" swfFilename = "../../FusionCharts/Column3D.swf" width="600" height="300" debugMode="false" --%> <% String strXML; strXML = "<chart caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showValues='0' formatNumberScale='0' showBorder='1'> "; strXML += "<set label='Jan' value='462' /><set label='Feb' value='857' /><set label='Mar' value='671' /> <set label='Apr' value='494' /><set label='May' value='761' /><set label='Jun' value='960' /> <set label='Jul' value='629' /><set label='Aug' value='622' /><set label='Sep' value='376' /> <set label='Oct' value='494' /><set label='Nov' value='761' /><set label='Dec' value='960' />"; strXML +="</chart>"; //Create the chart - Column 3D Chart with data contained in strXML String chartCode = FusionChartsHelper.createChartHTML("../../FusionCharts/Column3D.swf", "", strXML, "productSales", "600", "300", false); %> <%=chartCode%> </body> </html> Hope this works for you too. regards, Srividya Sharma
  11. Issue - Error In Loading Data While Using Strxml In Jsp

    Hi Prashant I am looking into this problem. While I am at it, can you please try out the new jsp tag library which would be present along with your evaluation download. The way to use the FusionCharts jsp tag library is simple. Here is a code snippet: <fc:render chartId="myFirstChart" swfFilename="../../FusionCharts/Column3D.swf" width="300" height="200" debugMode="false" registerWithJS="false" xmlUrl="Data/Data.xml" /> Here is the documentation page showing the usage: Please try it out and let me know.
  12. Fusioncharts Using Jsp In Eclipse

    Hi Vinoth, Can you please go through the Readme.txt file present in the downloaded package? This will help you get started.
  13. Fusioncharts Rails 3 Sample Application

    Hi Tim, For FusionCharts Free, you would need to use a slightly different xml. Please replace <chart> with <graph>. And use, <category name='2011-04-01'/> -> name in place of label Hope this helps. Srividya Sharma
  14. Fusioncharts Rails 3 Sample Application

    Hi Thank you for letting me know. I will take a look and make any changes required. Srividya Sharma
  15. FusionCharts JSF-All Tag Libraries & Samples

    Hi Thank you for your kind words. That made my day! Yes, you can modify the code. If you are making any improvements, please be kind enough to share it with us, so that we can enhance the library for other users as well. Srividya Sharma
  16. Simple Example - No Data To Display

    Hi If you are using free version, then you have to use : root tag as <graph> and name attribute instead of label attribute : <set name='' value=''/> On the other hand, if you are using v3 version, root tag will be <chart> and label is the attribute name in set tag. Please confirm the version of FusionCharts you are using.
  17. Simple Example - No Data To Display

    Hi Please modify the xml from <graph caption='Weekly Sales Summary' xAxisName='Week' yAxisName='Sales' numberPrefix=' > <set value='14400' /> <set value='19600' /> <set value='24000' /> <set value='15700' /> </graph> to <graph caption='Weekly Sales Summary' xAxisName='Week' yAxisName='Sales'> <set label='Monday' value='14400' /> <set label='Tuesday' value='19600' /> <set label='Wednesday' value='24000' /> <set label='Thursday' value='15700' /> </graph> and try once.
  18. Export To Jpg Giving Problem On Linux

    Please note the following findings: In Unix/Linux/Solaris, there might be a problem while using java Graphics package. ( as in the case of FusionCharts server-side exporter ) So when using FusionCharts for JSP export handler, you might run into the following exceptions: SYMPTOMS EXTERNALINTERFACE: Could not initialize class sun.awt.X11GraphicsEnvironment java.lang.Class.forName0(Native Method) java.lang.Class.forName( ) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment . ) java.awt.image.BufferedImage.createGraphics( ) OR java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( ) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment .java ) at java.awt.image.BufferedImage.createGraphics( ) OR java.lang.InternalError: Can't connect to X11 window server using ... ---- CAUSE Most versions of the Java.AWT library on Unix/Linux/Solaris require a functioning X server. The X server and the DISPLAY environment variable are not correctly set. X server is not installed in the machine. SOLUTION The best solution is to run Java in headless mode. This can be done by adding -Djava.awt.headless=true to server options. ( >= jdk 1.4.2 ) The other solutions involve installing a library like PJA library or a X server emulator. Reference:
  19. Export To Jpg Giving Problem On Linux

    For further investigation, can you please try if export to PNG format is working? Let me know the results. Thanks Srividya
  20. Can We Get Xml Data As Session Attribute In Jsp

    Yes, you can. Please store the value from session in a variable and then assign this to strXML. Srividya Sharma
  21. save as PDF and image on jsp

    Hi Let me get some clarification. You want to save the chart to the client's local machine without the download dialog box - if this is your requirement, then I am afraid it is not possible. While using server-side save, you can only save to the server.
  22. save as PDF and image on jsp

    Hi Please modify SAVEPATH value in the properties file, NOT HTTP_URI. If you are still not able to get it working, please send me a scaled-down version of your app so that I can make neccessary changes for path and send it back. Srividya
  23. save as PDF and image on jsp

    Hi Please change SAVEPATH in properties file to a path relative to your web aplication root.
  24. Looking for working GWT + FusionCharts example

    Hi, Currently, I do not have a FusionCharts example with GWT. However, I can give you guidelines on how it can be integrated. Add the following method in your Canvas class : public native String embedFusionCharts(String chartParams)/*-{ chart = new $wnd.FusionCharts("FusionCharts/Column3D.swf", "chart1Id", "800", "400", "0", "1"); chart.setDataURL("Data/Data.xml"); chart.render("chartDiv"); }-*/; Just call the above embedFusionCharts method with the required parameters ( Here the values are hard-coded for simplicity sake ) in the constructor of Canvas class. Include FusionCharts.js in the head section of your html page as follows: <script type="text/javascript" language="javascript" src="FusionCharts/FusionCharts.js"></script> Here are the steps: 1. You have a Canvas class say, 2. In this class, you have a native function similar to the one that was provided to you in the previous messsage: public native String embedFusionCharts(String chartParams)/*-{ chart = new $wnd.FusionCharts("FusionCharts/Column3D.swf", "chart1Id", "800", "400", "0", "1"); chart.setDataURL("Data/Data.xml"); chart.render("chartDiv"); }-*/; 3. You set the viewPanel for your EntryPoint class as the ChartCanvas (from step1) 4. You have included FusionCharts.js in your html page. 5. In your html page, you have a div with id chartDiv (the id mentioned in step2) I hope this guides you towards a solution. If any one of you succeeds with this procedure, please post the war file here, so that it can help others. Thanks, Srividya Sharma
  25. Connect To Oracle 10G Ex

    Hi The Oracle Error that you are getting is indicating that you have invalid character somewhere. Are you by any chance using any such character in the username or password while setting the datasource? Please check this once. Hope this helps. Srividya Sharma