-
Content count
943 -
Joined
-
Last visited
-
Days Won
3
Everything posted by srividya_sharma
-
Styles not working for subCaption
srividya_sharma replied to aman0711's topic in FusionCharts and JSP
The wrong attribute in the xml is: color='#FF0000' Color attributes in FusionCharts are always hex code without the #. Please try with color='FF0000' attribute in the trendlines section. Hope this works out for you. -
Saving chart as an Image not working
srividya_sharma replied to aman0711's topic in FusionCharts and JSP
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. For servers without a graphical interface, the above error will be thrown. The solution to your problem is to set java.awt.headless to true (requires jdk1.4 or above). This is explained here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19252 Hope this helps. -
Ruby Script for Image Saving
srividya_sharma replied to hitesh.manchanda's topic in FusionCharts and Ruby on Rails
Can you tell me the O/S in which you have RMagick installed? I found it difficult to install on Windows. If possible, please give me guidelines on how to install RMagick on Windows. -
Weird issue rendering multiple charts
srividya_sharma replied to Rahul Kumar's topic in FusionCharts and PHP
Can you send me the code? Also, tell me which browser and which version you are using. I will try it here. -
Weird issue rendering multiple charts
srividya_sharma replied to Rahul Kumar's topic in FusionCharts and PHP
Chart id has to be different for displaying multiple charts on a page. Please ensure that the Chart id for each chart is unique. -
Fusion Charts intergration with JSF
srividya_sharma replied to srividya_sharma's topic in FusionCharts and JSP
The usage of this taglib in Seam application would be similar. Use the same tags in your jsp where you want the chart to be rendered. The actual xml content can be obtained from an action and stored in a bean. Supply the xml from the bean to the fc:render or fc:renderHTML tag. I haven't tried it in Seam, just trying to provide guidelines to you. -
anchorSides is an attribute that can be used to set the number of sides the anchor will have. For example, an anchor with 3 sides would represent a triangle, with 4 it would be a square and so on. It can take value from 3 to 20. Please refer to this page in the documentation: http://www.fusioncharts.com/docs/Contents/AttDesc/Anchors.html Any other custom shape... may not be possible.
-
Calling Image saving Mechanism on button click
srividya_sharma replied to sachin257's topic in FusionCharts and JSP
Please download the zip file for jdk 1.4 from this topic : http://www.fusioncharts.com/forum/Topic6497-33-2.aspx Post #11101 -
Please download the zip file for jdk 1.4 from this topic : http://www.fusioncharts.com/forum/Topic6497-33-2.aspx Post #11101
-
Here is the updated application which works for jdk 1.4 and above. Please place FusionCharts folder ( with js, swf files in it ) and deploy it. v3ImageExample.zip
-
Ruby Script for Image Saving
srividya_sharma replied to hitesh.manchanda's topic in FusionCharts and Ruby on Rails
The upcoming release of FusionCharts may have a RoR script for generating image, using MiniMagick and ImageMagick. Do you think MiniMagick is easier to install/use than RMagick? -
Your problem seems to be similar to this post: http://java.thatscripts.com/java-archive/1648/215648-7.html I have tried with j2sdk1.4.2_02 and tomcat 4.0.5 on Windows. It works fine. I would suggest that you upgrade your jdk to at least j2sdk1.4.2_02.
-
Let me try to replicate your problem here with tomcat 4.x and jdk 1.4.2. I will get back to you soon.
-
Please use UTF-8 and try the jsp UTF-8 examples provided in the latest FusionCharts Free package.
-
FusionCharts v3 Evaluation and UTF-8 Problem
srividya_sharma replied to oaom's topic in FusionCharts and Ruby on Rails
I was not able to view your code, but here are a few guidelines. Please output the UTF-8 BOM before outputting the xml as shown: <% utf8_arr=[0xEF,0xBB,0xBF] utf8_str = utf8_arr.pack("c3") str_xml = utf8_str str_xml +="<?xml version='1.0' encoding='UTF-8'?>" str_xml +="<chart...>" str_xml += "<set .../>" str_xml+="</chart>" #Output the xml %><%=str_xml%> Also, please do not use the builder to build the xml. Hope this works for you. Srividya -
FusionCharts v3 Evaluation and UTF-8 Problem
srividya_sharma replied to oaom's topic in FusionCharts and Ruby on Rails
I have not been able to see your code. Here are some guidelines. Please output the UTF-8 BOM before writing the xml like this: <% utf8_arr=[0xEF,0xBB,0xBF] utf8_str = utf8_arr.pack("c3") str_xml = utf8_str str_xml +="<?xml version='1.0' encoding='UTF-8'?>" str_xml +="<chart ...>" str_xml += "<set ...>" str_xml+="</chart>" #Output the xml %><%=str_xml%> Also, it is better not to use the Builder for generating the xml. Hope this helps. Srividya -
Migrating FusionCharts-based Dashboard to a New PC
srividya_sharma replied to aaronfeen's topic in FusionCharts and JSP
This question has been answered in this forum http://www.fusioncharts.com/forum/Topic10750-33-1.aspx -
Multiple datasets not getting displayed
srividya_sharma replied to aman0711's topic in FusionCharts and JSP
Please see the attached code_modified.txt. I have modified only one statement. Replaced, rs3=st1.executeQuery(strQuery2); with, rs3=st3.executeQuery(strQuery2); It must have been throwing some exception which is caught in the catch clause. Hope this helps. code_modified.txt -
Fusion Charts intergration with JSF
srividya_sharma replied to srividya_sharma's topic in FusionCharts and JSP
I think it should work fine with facelets though I have not tested this. Please try it out. -
Data is not updating from the xml which we get from database
srividya_sharma replied to [email protected]'s topic in FusionCharts and JSP
Hi Kalyan, I can try to replicate the problem here, if you can give me some more information. What is the flow from the jsp? Sample jsp containing chart etc would be useful. Srividya -
Data is not updating from the xml which we get from database
srividya_sharma replied to [email protected]'s topic in FusionCharts and JSP
It could be a cache problem. Try putting the following headers in your jsp page: <% // These headers are required to prevent caching in IE response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT"); // set standard HTTP/1.1 no-cache headers response.setHeader("Cache-Control","no-store, no-cache, must-revalidate"); // set IE extended HTTP/1.1 no-cache headers response.addHeader("Cache-Control", "post-check=0, pre-check=0"); // set standard HTTP/1.0 no-cache header response.setHeader("Pragma", "no-cache"); %> Also, can you tell me how you are accessing the chart the second time? Srividya -
parseBoolean method is present only from jdk 1. 5. You seem to be using jdk version < 1.5. I am attaching FusionChartsRenderer.jsp and FusionChartsHTMLRenderer.jsp compatible for versions < 1.5 . Please replace these two files in Includes folder. FusionChartsRenderer.zip
-
I have created a sample JSP application to save the chart as image. Please place the FusionCharts folder containing all the swf files and js files inside the web application before deploying. Hope this helps everybody. Srividya v3ImageExample.zip
-
The statement in the builder: for item in factory_data implies that the factory_data has to be sent as parameter to the builder. I hope that you are passing this value from basic_dbexample.html.erb
-
undefined method `renderChart'
srividya_sharma replied to Eidher's topic in FusionCharts and Ruby on Rails
renderChart will usually be used from the view. Hence, this function should be copied to application_helper.rb from where it will be accessible to all the views. It is recommended to use these functions as part of library modules instead of copying the function into your application_helper. Srividya