srividya_sharma

Members
  • Content count

    943
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by srividya_sharma

  1. FusionCharts Struts2 Example

    Hi Good that you could figure out the problem. FusionCharts Free uses <graph> tag whereas FusionCharts v3 uses <chart> tag and v3 also has several attributes which are not present in free version. FusionCharts v3 introduces a debug mode for each chart. The debug mode helps you to look into what's happening in the chart behind the scenes. You can see how the chart is initializing, getting its data and interacting with JavaScripts. Various errors generated are also shown in this. So, whenever you see an error on the chart now, all you need to do is switch to debug mode and fix it up. --- from the documentation Srividya
  2. FusionCharts Struts2 Example

    Hi Can you post the XML String that you are seeing. ( I assume that you have the database setup ) Also, it would help if you turn on the debug mode to see any error messages. Srividya
  3. Top and Bottom N results of the data

    Hi Rama, You could limit the data at the sql query level. Get only the top 5 or bottom 5 results in your sql query. Hope this helps. Srividya
  4. Hi everybody, 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( Class.java ) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment. ) java.awt.image.BufferedImage.createGraphics(BufferedImage.java: ) OR java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java: ) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java: ) 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: http://www.idautomation.com/kb/xwindow-error.html
  5. Thank you all for the "support". Keep asking and keep getting more out of FusionCharts everyday! Srividya
  6. The jsp that I gave you, saves the changed xml to the FILE from which it was read. If you want to store the changed xml in session, please modify the jsp to write the data to session instead of file. Please try it out. Please contact me in case of any further issues. Srividya
  7. Javascript Link for drill-down

    What is the exact format for javascript link to be given in the xml for drill-down? Which version supports which format, please specify.
  8. Javascript Link for drill-down

    Hi, can you also tell me how I have to escape the parameters ( for single/double quotes ) sent to the javascript function? problem occurs when I store the xml itself in a string. Thanks Srividya
  9. Hello Ketan, Can you please change you javascript which updates the xml to the following: var graphPath = "FusionDataXML/PieChart.xml?nocache="+ new Date().valueOf()"; Hope this helps. Srividya
  10. Hi Charles, Can you tell me the java compliance of your project in weblogic? With Java 5 compliance, I am able to build the project in weblogic 10.3. regards, Srividya
  11. FusionCharts in Java Swing

    Hi Here is the sample application of FusionCharts using JFlashPlayer in Swing. Please go through the Readme.txt on setup and running. Hope this helps. Srividya FusionChartsSwingTestApp.zip
  12. FusionCharts in Java Swing

    Hi, Welcome to FusionCharts and Swing. We do have a demo application of FusionCharts and Swing using JFlashPlayer. Give me some time... I will package it and post all the details here. Thanks Srividya
  13. Hi Charles, Please check if fcexporter.jar is in the libraries used for compilation. hope this helps. Srividya
  14. Hi Suchira, There will be a config file on the server which can be used to configure database connectivity parameters across an application. Or, you could put the responsibility of giving the right connectivity parameters to the caller. so, whoever calls your component has to pass the connection configuration to it. Srividya
  15. hi here is a sample jsp drag node application. Please see if this is what you wanted. DragNode_JSPExample.zip
  16. Hi Suchira, From the website page, contact a servlet which would use a database helper class to do all the database processing. Then from that data, create a xml and pass the xml to the jsp. Srividya
  17. Hi Suchira, Did you get a chance to look at the JSP samples provided along with the download package? If not, I would request you to do so. All the backend database processing can be done via servlet and other classes. The generated xml can then be passed to a jsp, which would include FusionChartsRenderer.jsp to show the chart. Hope this helps! Srividya
  18. Data URL not passing all arguments to XML Request

    Hi In RoR, @str_data_url = "/Fusioncharts/db_data_url/pie_data?"+CGI.escape("param1=1&param2=2") Please try something like this. Hope this helps. Srividya
  19. FusionCharts Exporter Jars For Different Java Versions

    Hi, This servlet can be used only for single chart export. Srividya
  20. Data URL not passing all arguments to XML Request

    Hi Can you please encode the parameters before passing it as dataURL. Hope this helps. regards, Srividya
  21. Integrate FusionCharts in Swing Application

    Hi Surajit, Here are the xml files. Please place them in Data folder. Also please place the chart swf files in Charts folder. Hope this helps. Data.zip
  22. Need to call js function on entire chart.

    Hi Anila Happy to hear this. Glad to help! Srividya
  23. Integrate FusionCharts in Swing Application

    Hi Surajit, Here is a simple application showing FusionCharts in swing. You would need JFlashPlayer and DJNativeSwing to show flash content in Swing application. Please see the readme and follow the guidelines there. If you encounter any issues, please contact me. Srividya FusionChartsSwingTestApp.zip
  24. Hi Mona, Try giving a relative path. Srividya