srividya_sharma

Members
  • Content count

    943
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by srividya_sharma

  1. FusionCharts JSF-All Tag Libraries & Samples

    Merry Christmas to all FusionCharts JSF users.
  2. FusionCharts Struts2 Example

    Merry Christmas to all FusionCharts Struts users.
  3. Problem in Server Side Export Feature

    Hi Ryan, Can you elaborate on the mechanism/ flow you are using to export? If you can pin-point the problem I would be able to suggest better. Srividya
  4. Problem in Server Side Export Feature

    Hi Ryan, Yes, you CAN trigger the client-side export using Javascript. The javascript code for initiating export : <script type="text/javascript"> function ExportMyChart() { var chartObject = getChartFromId('myChart'); if( chartObject.hasRendered() ) chartObject.exportChart(); } </script> And then add a button like this: <input type="button" value="Export My Chart" onclick="ExportMyChart()" /> Please take a look at: http://www.fusioncharts.com/docs/Contents/ECJavaScript.html for further reference on initiating export from javascript. Hope this helps! Srividya
  5. Client side export as image not working

    Hi Neal, Please send us the html code from view source. ( and xml ) It will help us locate the issue. Srividya
  6. Problem in Server Side Export Feature

    Hi Ryan, You are welcome. Thanks for the version info. I will fix it. Srividya
  7. How can be exported into a BufferedImage?

    Hi, The method POST can't be changed to GET. This can be done only by changing the source code of the flash files. Srividya
  8. How can be exported into a BufferedImage?

    Hi Happy to hear that your problem got fixed. Glad to have helped you. Srividya
  9. Problem in Server Side Export Feature

    Hi Can you tell me the version of Java and the server (and its version) that you are using. Please try to change, String pathToWebAppRoot = getServletContext().getRealPath("/"); to: String pathToWebAppRoot = session.getServletContext().getRealPath("/"); in FCExporter_IMG.jsp and FCExporter_PDF.jsp at the lines specified in the error log. Please tell me the version of java and tomcat or other server that you are using, so that I can update the jar for that version. Hope this helps! Srividya
  10. How to use Fussionmaps in jsp!

    Hi Anila, Please see the attached file. This is a sample on how to use the FusionMapsRenderer.jsp. Please change the path to swf, js before testing. Srividya FusionMaps_Sample_JSP.zip
  11. How can be exported into a BufferedImage?

    Hello If you are using Struts, please provide the action as exportHandler in following format: exportHandler='myAction.do' I hope I have understood your problem correctly. If not, please specify your requirements clearly. Also tell me, why you want to handle the export through action. Srividya
  12. Client side export as image not working

    Hi Neal, Please see http://www.fusioncharts.com/forum/Topic20789-28-1.aspx Maybe you missed the Flash Global Settings. Hope this helps Srividya
  13. Drop Down menu transparency

    Hi Deepak, Please use the attached FusionChartsRenderer.jsp. and include the param as follows: <jsp:param name="wMode" value="transparent" /> Hope this helps Srividya Keep asking and keep getting more out of FusionCharts every day! FusionChartsRendererWithWmode.zip
  14. How can be exported into a BufferedImage?

    Hi Please see the following post, where servlet handler is provided: http://www.fusioncharts.com/forum/FindPost17327.aspx or http://www.fusioncharts.com/forum/Topic14950-33-1.aspx Hope this helps! Srividya
  15. Drop Down menu transparency

    Hi Deepak, FusionChartsRenderer.jsp currently does not support WMode as parameter. Please use the original javascript method of embedding the chart to use this parameter. I will try to add the support for these parameters in FusionChartsRenderer.jsp soon. Will keep you posted here. Hope this helps! Srividya
  16. Problem while saving as pdf/image

    Hi Saurabh, Just a hunch, have you configured the SAVEPATH ? Srividya
  17. Hi I think the path to the exportHandler, contained in exportHandlerPath should be a path, relative to current page. It cannot be a absolute path I think. Hope this helps. Srividya
  18. I don't want to display the number on PY and SY

    Hi Frank, Please use the attribute showYAxisValues='0' if you do not want to show the values on the YAxis. Hope this helps! Srividya
  19. How to use Fussionmaps in jsp!

    Hi Anila Good to see you trying FusionMaps. Please use the includes provided here: http://www.fusioncharts.com/forum/FindPost14098.aspx for FusionMaps in JSP. Hope this helps Srividya
  20. FusionCharts JSF-All Tag Libraries & Samples

    Hello everybody, Attached is the Sample Application with the latest FusionCharts JSF jar. ( v1.4 ) Please see the tld or the Version History.txt for all the attributes added in this version 1.4 of the tag library. Java: 5 JSF: 1.2 Tag library Jar version: 1.4 To try this application, please Place the FusionCharts.js and swf files in the FusionCharts folder. Place the JSF 1.2 related library files in WEB-INF/lib folder. For viewing Tabbed example, you would need rich faces. Srividya FusionChartsProJSF1_2v1_4SampleApp.zip
  21. FusionChart Broadvision JDK 1.3

    Hi You can use FusionCharts with any version of java that you want. The samples provided along with the download package can only be run in 1.4 (maybe with some deployment changes) and 1.5 & above. The server-side export handler code has also not been tested with version < 1.4.2. If you need any help in using FusionCharts with jdk 1.3, please send us example jsp that you are trying and we can help you out. Srividya.
  22. Fusion Charts intergration with JSF

    Hi Mario, Since you are using FusionCharts Free, the outermost tag in the xml has to be <graph> instead of <chart>. 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 Hope this helps. If not, please attach the xml file also. Thanks. Srividya
  23. Hi Piyush, If you are using the render_chart function in the view, you could set the registerWithJS value as follows: #Create the chart - Column 3D Chart with data contained in str_xml render_chart '/FusionCharts/Column3D.swf', '', str_xml, 'productSales', 600, 300, false, truedo-%> Srividya
  24. Hi Piyush, You can use javascript to initiate the export. Here is the code: <script type="text/javascript"> function ExportMyChart() { var chartObject = getChartFromId('myChart'); if( chartObject.hasRendered() ) chartObject.exportChart(); } </script> You can use your custom controller to handle the export, by specifying the exportHandler value in the xml. You cannot provide custom parameters to your controller, from the chart. The one way, you could achieve this is by using the existing attributes with a different meaning in your controller. For example: exportTargetWindow or exportAction. You could use these attributes as something else in your controller. Hope this helps. Srividya
  25. Hi Please see this sample code. The following function creates xml from the data present in the database. This xml can be provided to the chart. /** * The data to be displayed as a flash chart is retrieved from the * factory_master table and the required contents are formatted as a XML * string. The factory_master table is present in the FactoryDB database. * The connection to this database is provided by the DBConn class. * @param request * @param response * @return xmlString */ public String createChartElement(HttpServletRequest request, HttpServletResponse response) { Connection oConn = null; Statement st1 = null, st2 = null; ResultSet rs1 = null, rs2 = null; String strQuery = ""; String xmlString = ""; String animateChart = null; String factoryId = null; String factoryName = null; String totalOutput = ""; String strDataURL = ""; oConn = new DBConn().getConnection(); animateChart = request.getParameter("animate"); if (null == animateChart || animateChart.equals("")) { animateChart = "1"; } xmlString = "<chart caption='Factory Output report' subCaption='By Quantity' pieSliceDepth='30' showBorder='1' formatNumberScale='0' numberSuffix=' Units' animation='" + animateChart + "'>"; strQuery = "select * from Factory_Master"; try { st1 = oConn.createStatement(); } catch (SQLException e1) { e1.printStackTrace(); } try { rs1 = st1.executeQuery(strQuery); } catch (SQLException e1) { e1.printStackTrace(); } try { while (rs1.next()) { factoryId = rs1.getString("FactoryId"); factoryName = rs1.getString("FactoryName"); strQuery = "select sum(Quantity) as TotOutput from Factory_Output where FactoryId=" + factoryId; st2 = oConn.createStatement(); rs2 = st2.executeQuery(strQuery); if (rs2.next()) { totalOutput = rs2.getString("TotOutput"); } strDataURL = encodeDataURL("Detailed.action?FactoryId=" + factoryId, "false", response); xmlString += "<set label='" + factoryName + "' value='" + totalOutput + "' link='" + strDataURL + "' />"; } rs2 = null; st2 = null; } catch (SQLException e1) { e1.printStackTrace(); } xmlString += "</chart>"; try { if (null != rs1) { rs1.close(); rs1 = null; } } catch (java.sql.SQLException e) { e.printStackTrace(); } try { if (null != st1) { st1.close(); st1 = null; } } catch (java.sql.SQLException e) { e.printStackTrace(); } try { if (null != oConn) { oConn.close(); oConn = null; } } catch (java.sql.SQLException e) { e.printStackTrace(); } return xmlString; }