
some_one
Members-
Content count
26 -
Joined
-
Last visited
Everything posted by some_one
-
I'm using a MSCombiDY2D chart with one dataset as column, the other as line. I'd like the column to have a color gradient from left to right. I have the following chart xml but the gradient does not work; its one solid color. <chart caption="test" showBorder="0" showPlotBorder="0" canvasBorderAlpha="0" showLegend="1" syncAxisLimits="1" captionPadding="20" plotGradientColor="" PYAxisName="A" SYAxisName="B" canvasbgColor="ffffff" bgColor="ffffff"> <categories> <category label="E23"/> <category label="E42"/> </categories> <dataset seriesName="A" ParentYAxis="P" renderAs="Column" color="5C993D, B8FF70"> <set value="180.740"/> <set value="280.740"/> </dataset> <dataset seriesName="B" ParentYAxis="S" renderAs="Line" showValues="0" color="FACD4A" lineThickness="2"> <set value="40.740"/> <set value="60.740"/> </dataset> <styles> <definition> <style name="myFont" type="font" color="000000"/> </definition> <application> <apply toObject="DataLabels" styles="myFont"/> <apply toObject="DataValues" styles="myFont"/> <apply toObject="xAxisName" styles="myFont"/> <apply toObject="yAxisName" styles="myFont"/> <apply toObject="caption" styles="myFont"/> </application> </styles> </chart>
-
Adding that attribute adds a gradient, however I cannot seem to change the gradient color for some reason. See the attached. I've set the gradient to red, but it still goes to white. Is there some other property I should add/remove/adjust? thanks! <chart caption="test" showBorder="0" showPlotBorder="0" canvasBorderAlpha="0" showLegend="1" syncAxisLimits="1" plotFillAngle="0" captionPadding="20" PYAxisName="A" SYAxisName="B" canvasbgColor="ffffff" bgColor="ffffff"> <categories> <category label="E23"/> <category label="E42"/> </categories> <dataset seriesName="A" ParentYAxis="P" renderAs="Column" color="5C993D, ff0000"> <set value="180.740"/> <set value="280.740"/> </dataset> <dataset seriesName="B" ParentYAxis="S" renderAs="Line" showValues="0" color="FACD4A" lineThickness="2"> <set value="40.740"/> <set value="60.740"/> </dataset> <styles> <definition> <style name="myFont" type="font" color="000000"/> </definition> <application> <apply toObject="DataLabels" styles="myFont"/> <apply toObject="DataValues" styles="myFont"/> <apply toObject="xAxisName" styles="myFont"/> <apply toObject="yAxisName" styles="myFont"/> <apply toObject="caption" styles="myFont"/> </application> </styles> </chart>
-
I'd like the secondary y-axis values to be exactly the same as those of the primary y-axis. Which attribute controls this? thanks
-
Found it: syncAxisLimits
-
Hi, I have a bar chart with all values > 0. I have a lineset overlay with some negative values however these plots do not render below zero for some reason... the negative values only go to zero. Is there a setting to allow the lineset to be plotted exactly as the value indicates, regardless of what the bar dataset is? thanks
-
Hi, So is the issue just the position of where the lineset element exists? It should be at the bottom? thanks
-
Any update? Is this a bug? thanks!
-
Please see attached. The screenshort displays the current issue. You can see from the tooltip (and chart.xml) that some of the line values are negative but the line plot does not reflect that. Not sure of the exact version i am using. How can i find that? thanks fc.zip
-
I don't have one. Like I said, I've never been contacted by anyone. I submitted what was asked of me but never heard back. thanks
-
Any update on this? I have yet to be contacted by anyone. thanks
-
I can't upload anymore. Your forum has a max of 10mb per thread. Its really not that hard to create a project from my upload either.
-
I threw this together in 5 minutes using my version of FC and the jar's you gave me. I'm using NetBeans 7 as my IDE, with tomcat 7, although I can reproduce the error with tomcat 6. If you leave the default setup for logs then there are several logs generated from tomcat, so please ensure you inspect all of them. web.zip
-
I have an idea. Get them to fix the export issue Not sure why we are ignored. As a side note, the export of the chart will work (the file is generated), but there are (seemingly harmless) exceptions thrown in the process.
-
This is from your source code (FC_Exporter_PDF.java). If this code is not current, please let me know. I can't explain why you don't get the exception but I can point out why I am getting the error. In the below code, the OutputStream is retrieved to write the PDF binary data to response. Then a few lines below that, PrintWriter is retrieved to write character data to the response. You can't write both binary and character data to the response, its one or the other. This is why I am getting error and I believe this should be the focus of our discussion, not reproducing the error. Please investigate this. ..... ..... OutputStream os; try { os = response.getOutputStream(); for (int i = 0; i < pdfBytes.length; i++) os.write(pdfBytes[i]); os.flush(); // os.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } if (logMessageSetVO.getErrorsSet() == null || logMessageSetVO.getErrorsSet().isEmpty()) { meta_values = exportBean.getMetadataAsQueryString(null, true, isHTML); PrintWriter out; try { out = response.getWriter(); out.print(meta_values + noticeMessage + "&statusCode=" + Status.SUCCESS.getCode() + "&statusMessage=" + Status.SUCCESS); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
-
Any status update on this? If you are testing with standard Tomcat setup, the logs get generated to the localhost*.log file. I had a co-worker try and reproduce the error and they didn't notice the error at first because the exception got written to tomcat/logs/localhost*.log file, not to the standard out console. Please inspect all your logs.
-
We don't use JSP's in our project. We use a third party java framework. Regardless, the error still occurs if I use a simple JSP's project or not. Perhaps you do not see the error because logMessageSetVO is not empty (line 178 of FCExporter_PDF). Put a breakpoint at this section and you will see that there are issues here. I don't see why the issue of calling getWriter and getOutputStream is not addressed. FCExporter_PDF does exactly this and you cannot do this in Java. I can find you several references if you like.
-
Attached is a sample project using code from your website and the jars you sent me. There is also a .png of the error in the attached file. web.zip
-
I am using those jars (java) from your attached file. They still produce errors that I have posted earlier. This happens ONLY for PDF streaming (download option) because exceptions are thrown from calling response.getOutputStream() then a few lines down you call response.getWriter() Thanks
-
I think I found the issue. You can't call getOutputStream and getWriter in the same response body. In your source (FCExporter_PDF.java and probably the other export classes), OutputStream is used to write the binary data, then the PrintWriter tries to write character data (status codes). This will throw an exception. This code only executes for downloads, not writing the file to the server disk. I'm surprised this was not caught earlier.
-
Here are some additional INFO logs that may help: 14-May-2012 11:42:38 AM com.fusioncharts.exporter.servlet.FCExporter init INFO: FCExporter Servlet Init called 14-May-2012 11:42:38 AM com.fusioncharts.exporter.servlet.FCExporter init INFO: Is SAVEPATH on server absolute?false 14-May-2012 11:42:38 AM com.fusioncharts.exporter.generators.PDFGenerator getPDFObjects INFO: Creating PDF specific objects. 14-May-2012 11:42:38 AM com.fusioncharts.exporter.generators.PDFGenerator getPDFObjects INFO: Gathering data for each page 14-May-2012 11:42:38 AM com.fusioncharts.exporter.generators.PDFGenerator getBitmapData24 INFO: Parsing image data 14-May-2012 11:42:38 AM com.fusioncharts.exporter.generators.PDFGenerator getBitmapData24 INFO: Image data parsed successfully 14-May-2012 11:42:38 AM com.fusioncharts.exporter.generators.PDFGenerator compress INFO: Compressing the image data 14-May-2012 11:42:38 AM com.fusioncharts.exporter.generators.PDFGenerator compress INFO: Image data compressed 14-May-2012 11:42:38 AM com.fusioncharts.exporter.generators.PDFGenerator getPDFObjects INFO: PDF data created successfully 14-May-2012 11:42:38 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet FCExporter threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:610) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) at com.fusioncharts.exporter.resources.FCExporter_PDF.exportOutput(FCExporter_PDF.java:184) at com.fusioncharts.exporter.servlet.FCExporter.doPost(FCExporter.java:192) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:883) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:722) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2214) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
-
I can't post everything, but here are some of the relevant parts. The export works fine, there are just server-side exceptions thrown. Thanks web.xml <servlet> <display-name>FCExporter</display-name> <servlet-name>FCExporter</servlet-name> <servlet-class>com.fusioncharts.exporter.servlet.FCExporter</servlet-class> </servlet> <servlet-mapping> <servlet-name>FCExporter</servlet-name> <url-pattern>/FCExporter</url-pattern> </servlet-mapping> fusioncharts_export.properties SAVEPATH=/assets/images/ HTTP_URI=http://www.yourdomain.com/images/ OVERWRITEFILE=false INTELLIGENTFILENAMING=true FILESUFFIXFORMAT=TIMESTAMP chart properties <chart decimals="1" showValues="0" showBorder="0" showLegend="1" canvasBorderAlpha="0" showPlotBorder="0" plotFillAngle="360" showAlternateVGridColor="0" plotGradientColor="" plotSpacePercent="100" exportEnabled="1" exportAtClient="0" exporthandler="/cp/FCExporter" exportAction="download" yAxisName="kWh" PYAxisName="kWh" showSum="1" canvasbgColor="ffffff" bgColor="ffffff" bgAlpha="100" showDivLineSecondaryValue="0" showSecondaryLimits="0"> ... </chart>
-
I downloaded the latest version of XT and that seems to have fixed the issue. However with the new version, comes problems with exporting to images/pdf. http://forum.fusioncharts.com/index.php?app=core&module=search&do=user_activity&userMode=content&&mid=28132
-
Illegalstateexception When Exporting Chart
some_one replied to KeithFrohn's topic in FusionCharts and JSP
I have the same error. The server side export (with exportAction=download) works fine, but i still get exceptions thrown. SEVERE: Servlet.service() for servlet FCExporter threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:610) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) at com.fusioncharts.exporter.resources.FCExporter_PDF.exportOutput(FCExporter_PDF.java:184) at com.fusioncharts.exporter.servlet.FCExporter.doPost(FCExporter.java:192) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:883) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:722) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2214) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)