-
Content count
943 -
Joined
-
Last visited
-
Days Won
3
Posts posted by srividya_sharma
-
-
Hi,
Can you please confirm that you are running this after deploying to a web server and StockPrice.jsp is accessible from the web address?
Srividya
-
Are you using the latest version of FusionCharts or a previous version?
-
Can you please attach the file, I could not find it.
thanks
Srividya Sharma
-
I can't think of any problems with this. Can you please verify that you have configured log4j correctly?
Hope this helps.
Srividya Sharma
-
Hi,
I'm using Powerchart ,and I want to get the data after I draw it . However I use the Struts2 and Java as my sever language , they need the name of data of PowerCharts delivered from the client side to match the name of the attribute of the object that is defined in the Java file ,then the sever side can handle the data . So I must define the name of data of PowerCharts that I draw ,but I don't know how to define it .Please help me as soon as possible . Thanks a lot !
Hi,
To get the chart data as xml in javascript, yo uwould use the following code:
var chartReference = FusionCharts("myChartId"); var chartXML = chartReference.getXMLData();
After getting this data, you can set it in some hidden field in the page. You can use the same field name on the server, to retrieve its value.
Hope this is what you were looking for.
Hope this helps.
Srividya Sharma
-
Hi,
Can you please check out the samples provided in the download package?
They have examples of creating the xml in java.
Srividya
Hi Sir I'm new to this Fusion chart ..
i have added the all jar files.
i'm using jdk1.6,tomcat 6
i need to generate xml did u have any sample program to generate XML in JAVA.
-
We do not have the exporter jar for jdk < 1.4. Sorry about that.
-
hi,
Currently the tag library has not been updated for JSF 2. Sorry about that.
Srividya Sharma
-
Please check if the export related files are present in the correct directory.
-
Hi
Here is what I would suggest.
Do not generate the xml and save to hard disk. Instead, to the strURL, provide the path to invoke the jsp that generates the xml.
Modify your jsp to generate xml and return it instead of saving it to disk.
Then, the chart will receive data from the data provider jsp directly.
Hope this helps.
Srividya Sharma
-
Hi
Thank you for using the JSF tag library.
I will take a look at your problem, but it might take some time to do the changes.
Thank you for your patience.
Srividya Sharma
-
Hi Neeraja,
For server side export, you do not need a button click. It can be automatically exported after the chart renders.
Please incorporate automatic export after you achieve manual export.
I will take a look at the files you have attached and get back to you soon.
Srividya Sharma
-
Glad to help.
Happy FusionCharting!
-
Hi Neeraja,
Thank you for posting the xml and html.
I took a look at the version of the swf and it seems to be latest. Also, I am getting a capturing window when I initiate export.
Can you please try the Export example present in Download Package > Code > J2EE > ExportExample once?
See if that works.
Most likely, it is an issue with either
1. the path to the export handler (exportHandler attribute)
or
2. version of flash player - please check this
Hope this helps
Srividya Sharma
-
Hi,
I think you have missed placing fcsampleshelper.jar in the WEB-INF/lib folder. Please do so.
Can you please send a screen-shot of the error/page you are seeing?
regards,
Srividya Sharma
-
Hi
Please ensure that the chart container has a width and height specified.
Fr example, in your code, you would have the div defined as follows:
<div id="superTestChart" style="height:400px;width:400px;">FusionCharts will load here</div>
If the chart itself is not loading, then it must have something to do with the data. Please post the screen-shot of the error and debug window.
Hope this helps.
Srividya Sharma
-
Hi
I took a look at the code in the bean again.
I think I figured it out.
There were a few duplicate statements in the MSFactoriesData bean. Hence, the connection might have been busy and the xml was not generated correctly.
Please replace the attached fcsampleshelper.jar in your application and try it out. ( remove cache from tomcat if needed )
rename .zip to .jar.
Hope this helps!
Srividya Sharma
-
Hi
Please contact [email protected] or submit a ticket at http://support.fusioncharts.com/ for professional help.
One last shot, can you tell me the version of JSTL and tomcat you are using?
Srividya Sharma
-
Hi
The zip file you attached works like a charm here!
ok, here is another idea.
Please modify the MSDBExample.jsp present within JSP/DBExample folder as follows:
1. remove the existing fc:render tag and put the following in its place:
<fc:render chartId="${factoriesBean.chartId}" swfFilename="${folderPath}${factoriesBean.filename}" width="${factoriesBean.width}" height="${factoriesBean.height}" debugMode="true" registerWithJS="false" dataFormat="xml"> <?xml version="1.0" encoding="UTF-8" standalone="no"?><chart animation="1" caption="Factory Output report" formatNumberScale="0" rotateValues="1" showValues="0" subCaption="By Quantity" xAxisName="Factory" yAxisName="Units"><categories><category label="1-02-2003" /><category label="1-03-2003" /><category label="1-04-2003" /><category label="1-05-2003" /><category label="1-06-2003" /><category label="1-07-2003" /><category label="1-08-2003" /><category label="1-09-2003" /><category label="1-10-2003" /><category label="1-11-2003" /><category label="1-12-2003" /><category label="1-13-2003" /><category label="1-14-2003" /><category label="1-15-2003" /><category label="1-16-2003" /><category label="1-17-2003" /><category label="1-18-2003" /><category label="1-19-2003" /><category label="1-20-2003" /></categories><dataset seriesName="Factory 1"><set value="23" /><set value="22" /><set value="24" /><set value="32" /><set value="21" /><set value="34" /><set value="32" /><set value="32" /><set value="23" /><set value="23" /><set value="32" /><set value="53" /><set value="23" /><set value="26" /><set value="43" /><set value="16" /><set value="45" /><set value="65" /><set value="54" /></dataset><dataset seriesName="Factory 2"><set value="121" /><set value="123" /><set value="122" /><set value="124" /><set value="132" /><set value="121" /><set value="134" /><set value="132" /><set value="132" /><set value="123" /><set value="123" /><set value="132" /><set value="153" /><set value="123" /><set value="126" /><set value="143" /><set value="116" /><set value="145" /><set value="165" /><set value="154" /></dataset><dataset seriesName="Factory 3"><set value="54" /><set value="56" /><set value="89" /><set value="56" /><set value="98" /><set value="76" /><set value="65" /><set value="45" /><set value="75" /><set value="54" /><set value="75" /><set value="76" /><set value="34" /><set value="97" /><set value="55" /><set value="43" /><set value="16" /><set value="35" /><set value="78" /><set value="75" /></dataset></chart> </fc:render>
What this does is, it puts the xml generated from my database as hardcoded xml for the chart.
If this works on your end, then the problem is either with the retrieval of data and/or generation of xml.
Lets take it from there.
Srividya Sharma
-
Hi
I am unable to replicate the problem here and I am running out of ideas too.
Let me see...
Let's do this. You send me your war file, I will just deploy it as it is here and see if I encounter the same problem as you do.
Srividya
-
Hi Swathy,
Thanks for the code.
Can you please System.out.println xmlData and tell me the output?
You can also get the xml by turning on the debugMode.
Srividya Sharma
-
Hi,
Assuming that you are using Rails3, can you please try the Rails3 sample provided here: http://forum.fusioncharts.com/topic/8111-fusioncharts-rails-3-sample-application/
Hope this helps.
Srividya
-
Hi Neeraja,
I took a look at your web.xml.
As you had mentioned earlier, the problem seems to be here:
<servlet-mapping>
<servlet-name>FCExporter</servlet-name>
<url-pattern>/cgretail-reports/showPiechartReport.allfon</url-pattern>
</servlet-mapping>
Please note that the value that you provide to exportHandler attribute in the xml should be same as the value provided in the url-pattern.
Only then, the chart will direct to the correct url for handling export.
Please try to invoke the FCExporter servlet directly from the browser and the path that you use there will be the url-pattern or the exportHandler value.
Hope this helps.
regards,
Srividya Sharma
-
Hi Neeraja,
Can you possibly share your web.xml or other configuration file where you have defined the HandlerServlet etc?
Srividya Sharma
Data Streaming Chart - Invalid Data: Non-Numeric Data " Roundedrandomvalue
in Suggestions & Requests
Posted · Report reply
Hi
In order to use a jsp file you would need to deploy it as part of an application in a web server like tomcat.
If you already have IIS installed, you should probably try deploying the asp file.
Hope this helps.
Srividya