jfreechart

JFreeChart SpiderWebPlot inner circles?

只愿长相守 提交于 2019-12-12 14:41:15
问题 So I have been using JFreeChart to try and create spiderWebPlot and it's been working well so far: I was wondering if it was possible to add circles for the possibles values, so it looks more like an actual spider web, something like: 回答1: After adding above code patch you will get rings like below image. 回答2: As suggested here, a background grid is not yet implemented. A patch is cited and discussed in this forum thread. 来源: https://stackoverflow.com/questions/35944311/jfreechart

JFreeChart - Problem of colors with 2 legends

回眸只為那壹抹淺笑 提交于 2019-12-12 13:37:07
问题 I try to create a customized legend in my chart but something strange happens when I display one or two legends. When I display 2 legends (the old one and the new one), everything is allright, colors are respected in legends and in the graph. But, when I want to display only the new legend, the colors in the legend are respected but the colors in the graph are not respected anymore. This is an example on my issue: You have to comment and decomment a line to see the problem (see comments)

How to disable scaling in JFreeChart?

十年热恋 提交于 2019-12-12 13:02:00
问题 We're using JFreeChart to build an engine to display graphs. This is a web service that runs on Tomcat + Java 1.5.0, and renders charts to PNGs and JPEGs (using ChartUtilities.writeChartAs{PNG,JPEG}() ). We've run into a problem where JFreeChart seems to scale everything inside the Plot area, but only by a few pixels. The result is that the graph looks inconsistent, e.g.: Minor ticks are sometimes stretched horizontally, so that they seem to be two pixels wide instead of one. We use a small

jfreechart - change sample of colors in legend

柔情痞子 提交于 2019-12-12 11:25:57
问题 Can someone tell me how to change samples of series color in legend in jfreechart. What I have now is small line of series color eg: I would like to have square sample of those colors. Here is an example Can someone help me? Ok I found the solution. At least I think. Of course there is no simple way to do this. There is now, you know, setShape(square) method, that will do the trick, at least i haven't found one. Basicly XY chart and time chart have "line style" legend by default in contrary

Java Headless Exception after setting -Djava.awt.headless=true

你说的曾经没有我的故事 提交于 2019-12-12 10:13:57
问题 I am using: Linux Debian 6, Java 1.6.29 and Tomcat 6 I've seen many posts about it explaining that java.awt requires X11 libraries..etc., but they are not solving the problem. I set -Djava.awt.headless=true in my box and I worked around the first problem of the headless environment, now I am getting: java.awt.HeadlessException java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) java.awt.Window.(Window.java:432) java.awt.Frame.(Frame.java:403) javax.swing.JFrame.(JFrame

CrossHair Tracing In JFreeChart

浪尽此生 提交于 2019-12-12 09:24:35
问题 I was able to implement real-time mouse tracing as follow : The source code is as follow : http://jstock.cvs.sourceforge.net/viewvc/jstock/jstock/src/org/yccheok/jstock/charting/CrossHairUI.java?revision=1.5&view=markup http://jstock.cvs.sourceforge.net/viewvc/jstock/jstock/src/org/yccheok/jstock/gui/ChartJDialog.java?revision=1.9&view=markup However, I unable to obtained the correct y screen coordinate, when an subplot being added. (broken image) I suspect I didn't get the correct screen

Saving charts in Excel sheets

一世执手 提交于 2019-12-12 05:49:38
问题 I want to know is it possible to save bargraph,piechart developed using jfreechart in excel sheet directly.If possible can anyone guide as to how this can be done.I know that using jfreechart we can save bargraph,piechart in .png,jpeg format but is it possible to directly save it in excel sheet. 回答1: No, it is not possible using JFreeChart only. However, you can create and manipulate Microsoft Office documents using Apache POI. 来源: https://stackoverflow.com/questions/21334068/saving-charts-in

Showing two JFreeCharts on one page

爷,独闯天下 提交于 2019-12-12 03:53:32
问题 Im using JFreeChart to display two graphs on a PDF, but only one of them is showing and its showing at the bottom. Is there a sample code somewhere of how to show one graph at the top of the page and anoher at the bottom? Thanks. 来源: https://stackoverflow.com/questions/15900169/showing-two-jfreecharts-on-one-page

jfree chart draw image on a category plot

隐身守侯 提交于 2019-12-12 03:45:14
问题 Heyy folks I have a pretty strange requirement.I need to draw an arrow shaped image beside a stacked bar chart in a category plot .The arrow image has to be red or green depending on some pre defined condition.I just need help to find a method to draw an image outside the stacked bar on the plot using jfree chart.Please help me out with this guys .Being stuck with this for days !!!! 回答1: You could implement the CategoryAnnotation interface: plot.addAnnotation(new CategoryAnnotation(){ Image

How can i have the time on x axis and control the scaling value on a button click using jfreechart?

大憨熊 提交于 2019-12-12 03:34:42
问题 Basically i want to show the historic data on a jfreechart graph, for that thing i need to have a time series on x -axis with scaling of 10 min or anything which should be controlled by a button click(Basically scaling gets doubled on every click if the scaling is 10 min on button click the scaling should be 20 min) and if i press the "back" button i have to show the older time periods(on x axis) with their corresponding data on the graph. How could i achieve this using jfreechart in an