Plot 1 « Plot « JFreeChart Q&A





1. What is the best open-source java charting library? (other than jfreechart)    stackoverflow.com

Why are there not more opensource easy to use charting libraries for Java?. The only successful opensource project in this area seems to be jfreechart, and it doesn't even have any ...

2. how to plot day-wise chart using Jfreechart    stackoverflow.com

I have data for every 15 minutes. I want to plot a graph to display values from 'date1' to 'date2'. The plot should show every 15 minutes value. But display on ...

3. Get minimal visible value in plot    stackoverflow.com

I am using current version of JFreechart, plot is XYPlot type. After zooming-in xyplot with

zoomablePlot.zoomDomainAxis(...);
zoomablePlot.zoomRangeAxis(...);
I would like to get minimal visible value on domain axis. The DataRange object
//plot is XYPlot type
Range dataRange = ...

4. Combined XY realtime plots    stackoverflow.com

Ok so there was confusion on what i was asking. I need help adjusting the algorithm I already have here. First part I need the X axis to be time and ...

5. How to set same scale for domain and range axes JFreeChart    stackoverflow.com


I would like to create pole/zero plot similar to pole/zero plot. It is for displaying IIR and FIR filters properties like stability, type... My question is: How can I set ...

6. How to custom more complex plot    jfree.org

Hi! There is support for piecharts (even exploded ones) and for ringcharts (see the online demo from the website), but I'm afraid there is no support for a combination of both as your graphics show them. Implementing those king of charts shouldn't be too hard as the basic infrastructure is already there, but it is definitley not just a minor thing. ...

7. ImageTitle disappears behind the plot...    jfree.org

ImageTitle disappears behind the plot... by Guest Mon Jun 13, 2005 4:46 pm hi all, i have a problem with images as subtitles. when i try to add a image as a subtitle in a position where it overlaps with the plot, the overlapping part of the image disappears behind the plot. whereas when i add a text as a ...

8. Compass Plot    jfree.org

Hi I am trying to implement a compass where I want to be able to point the needle to changing directions. However it is not clear to me how the compass determines where 0 is. I changed the demo degree to 0 and it points to South, which should be 180 from what I understand. Could someone please shine some light ...

9. customizing compass plot with errors    jfree.org

Does anyone know how to put a shaded area on both sides of the compass needle? For example, if I want to display 45 degrees and want to put a 10% error slice on both sides. How would I do that. I really need help with this. Somebody please help me!!!.... thanks a lot in advance c





10. giving outline to area plot    jfree.org

11. outline to area plot    jfree.org

13. Super-imposed plots    jfree.org

14. Quadrant 4 plotting    jfree.org

I'm plotting positive x-values but negative y-values (via a jsp file) but would like: (1) the x-axis label to appear on the top of the graph and not the bottom (2) the y-axis to display postive integers even though the y points are negative (3) have the line colors be the same for any specific x-value, instead of 30 colors (or ...

15. Does plot.setDataAreaRatio work?    jfree.org

It's a field that was added by the developer that contributed the ContourPlot class, and it is only used by ContourPlot at this time. I'm going to move it from Plot --> ContourPlot for now, although later it would probably make sense to put it in XYPlot, and make ContourPlot extend XYPlot rather than Plot. Sorry for the confusion.





18. Mixing Plot Types    jfree.org

All - I'd like to create a combined domain plot with an XY plot on the top and a scatter plot on the bottom. Do the plots need to be the same types? Could anyone point me off to an example of how to support two plot types on a single chart? Thanks, Mark

19. how can i get plot    jfree.org

20. meter plot starting with zero degrees at the top, urgent!    jfree.org

Hi, I need to use a meter plot with rage 0 to 360. I tried various examples but I could not get to draw the meter plot with the 0 degrees on the top 9 and the pointer should move clockwise from the top). is there a way to do this? Thanks!

22. Displaying Phase Plots    jfree.org

23. scientific, heavy interactive plots ?    jfree.org

hello, i'd like to develop a scientific swing-based app. i need interactivity with the graph, and i need the graph to handle a lot of points (>10000 points on a XY plot). i really appreciate the great look and feel of jfreechart, and the interaction with report generation. but will interaction and heavy plots work well in jfreechart ? on the ...

24. Plotting discontinuous 'mathematical' functions    jfree.org

Hi Everyone I am trying to create a chart to represent straight-lined piecewise functions, where both the domain and range are [0, infinity), that is, positive x- and y-values only. The functions may be discontinuous, but will always be defined for any x value. I would ideally like to display a symbolic 'infinity' value on the chart (even better if I ...

25. Panning plot    jfree.org

I think this has been asked here before; but I could not find the code example for panning. In any case, if someone has an example implementation of panning a plot I would appreciate if it can be shared. I need to do that for a project I'm working on. P.S.: I don't understand why it is not an standard feature ...

26. Log plot Gridlines    jfree.org

27. plot orientation    jfree.org

28. cewolf CombinedXY plot with xYSeriesCollection    jfree.org

Hi, I am using Ceolf 1.0.0 with jfreechart 1.0.0. I am trying to get a combinedxy plot with XYSeriesCollection as dataset. The problem is that on the X-axis I get 05:30:00.000 05:30:00.025 05:30:00.050 I would just like to get it as 0 25 50 75 Eventhough I just add numbers(double) on the axis like this. Code: Select all ...

29. Plots using Patterns? (Attn: David Gilbert)    jfree.org

Hi, I posted a message on this forum a few days back but there was no reply. Kindly if Mr. David Gilbert can reply to this I would be grateful. I am using JFreeChart library to create plots of internet monitoring data which are used in reports. Since the reports are printed in Black and White, I need to know whether ...

30. real-time history plotting.    jfree.org

Hi! I, like many people here, seem to be using jFreeCharts in a real time sense, where data points may be added to a Series periodically in run-time. What I want to do is always have the most recent datapoint have a x-axis value of 0 to the extreme right-most of the graph, and have older values have a negative time ...

32. Plot left align    jfree.org

Hi, I'm trying to print two PiePlot in a JSP page (with Cewolf). The two PiePlot are on top of each other. I'm not printing label but I'm printing a legend on the west-side of graphics My problem is : As the legend labels are not the same size in the both graphics, the both images are not align (vertical axe). ...

33. quick suggestion on plot classes    jfree.org

hi - it seems that most common UI's are already seperated to JCommon.... just a small suggestion: in future releases perhaps we can have the draw() functions in the Plot classes seperated too, maybe to package org.jfree.chart.plot.draw, so that the look and feel of the plots can be more easily customized by extending Draw classes, rather than extending the Plot classes. ...

34. Plotting non-linear data chronologically    jfree.org

Does anyone know if JFreechart supports plotting non-linear data? I saw a similar post from a couple years ago, but no info there. If you compare data of 2 parameters like fuel flow and exhaust temperature over time, the paramater values will change in relation to each other. However, if the values go up and back down again, you end up ...

35. Millisecond() class loads data via STDIN - no plot till end    jfree.org

I am a JAVA newbie with dynamic chart repaint issues; working on minimal additions to a plagiarized and very much appreciated DynamicDemoData1.java application. I'm reading STDIN with BufferedReader(), parsing logged process datapoints and loading them with the add() method into the Millisecond() class. I dont observe the chart data paint until my piped file (STDIN) is exhausted and my readstdio() process ...

37. How to reduce the Plot Area of a BarGraph?    jfree.org

Hello All, I need to display only two or three bars in a bar graph. By Default these bars are centered with in the available space. I'm aligning these bars to the left and the space between them is set to the minimum. So, there is a lot of space in the plot drawing area which I need to eliminate. I ...

38. How to use Wind plot Chart ?    jfree.org

39. How I can plot 2 functions ?    jfree.org

Hello, I'd to know how I can plot 2 or more functions with interval that I give. For example: I have the funcion: X^3 + 3*X^2 + 4 = 0 And I want to plot the following interval: 1 : 0.001 : 5, that is, start in one with a step 0.0001 and finish in 5. And the other funcion is ...

40. Sub millisecond Plots    jfree.org

41. Adding to a Plot    jfree.org

If you have the JFreeChart Developer Guide, take a look at RegressionDemo1.java, which adds a regression line to a set of points. Otherwise, the approach is to add two datasets to the plot, and also two renderers (one an XYLineAndShapeRenderer that displays only shapes, the other an XYLineAndShapeRenderer that displays only lines).

42. Can JFreeChart plot (x,y, value) data?    jfree.org

You might also want to take a look at the XYBlockRenderer class in the org.jfree.experimental.chart.renderer.xy.* package (there are a few demos in org.jfree.experimental.chart.demo.* as well). I'd like to get this code polished up and transferred across to the "official" packages, so any feedback is welcome. The main thing that is missing for it right now, is an item to display a ...

43. titles on combined plots    jfree.org

44. Interactive overlaid plot    jfree.org

Hi all, I was able to get an overlaid xyline plot and xyplot (points ) , i want to make my xy line plot interactive I mean I must be able to move the xylines in the graph is that possible using jfreechart. I just want to make my doubt clear by this example. Suppose i have a 45 degree line ...

45. Plotting all graphic area    jfree.org

46. 3D plot    jfree.org

47. New User Query : Plotting Vectors and Stacking Charts    jfree.org

Hello, I'm a new user and have a couple of questions for anyone that may care to answer them which will determine whether Jfreechart will suit my needs and I will purchase the developer's guide : 1) Is it possible to plot a vector field directly using JFreeChart (similar to the 'quiver'function in Matlab if anyone is familair with it ) ...

49. Dial Plot proportion    jfree.org

The current implementation of the dial plot adapts it size to the component size. So if the component is not rectangular the dial is not a circle but an ellipse. Is it possible (and if not I would like to have the option ) to force the dial plot to always draw a circle? I think this option could also be ...

50. NullPointerException removing subplot from combined plot    jfree.org

Hi, I am using a CombinedRangeXYPlot and get a NullPointerException whenever I try to remove() a subplot from the plot. I am using JFreeChart version 1.0.1. I have modified the demo source for CombinedXYPlotDemo2 to reproduce the problem. Here is the stack trace for the NPE, from the demo app: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at org.jfree.chart.plot.XYPlot.drawQuadrants(XYPlot.java:2329) at org.jfree.chart.plot.XYPlot.drawBackground(XYPlot.java:2307) at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2099) ...

51. swt FastScatterPlot and Dynamic plot    jfree.org

swt FastScatterPlot and Dynamic plot by raghavan_26 Wed Jan 10, 2007 1:36 pm Hi, I am able to get the plot in swt .. But My problem is When I am trying to display that image in SWT and changing the background colour then only I can view points ..If i change the back ground colour to blue I can ...

52. 3D plot chart    jfree.org

Hello, I'm trying to create a 3D plot chart, a graphic representation of z = f(x,y) with x and y in two ranges of values but I can't find the class I have to use. I didn't find the right method in ChartFactory. Is it possible to do it with Jfreechart ?

53. Log plot scale    jfree.org

I have a log-log plot and on my X axis I have a the scale set from 0.001 to 1. Now, I only see these two numbers and nothing else in between. My client would like to see some other markers (0.01, 0.1, etc). How can I make it do that? Thanks!

54. Combining CategoryDataset und XYDataset in one Plot    jfree.org

Combining CategoryDataset und XYDataset in one Plot by weidlix Thu Jan 18, 2007 5:02 pm I want to implement a Trendline in my LineChart. The LineChart-Data is implemented as a CategoryDataset. In the Regression example the Trendline is implemented as XYDataset. Now I want to implement the XYDataset in the plot. I tried this, but i didn't found a solution, ...

55. Dual Plot Chart problem    jfree.org

Has any one encounter this problem In Dual plot chart I am able to see proper chart only when categories of both type of charts match e.g i have a bar chart and line chart if bar chart has 3 categories i.e A B & C and if line has only A & B then line chart plotting goes wrong. it ...

56. request: CombinedDomainAndRange*Plot    jfree.org

David, In JFreeChart, there four types of combined plot: CombinedDomainCategoryPlot, CombinedDomainXYPlot, CombinedRangeCategoryPlot, and CombinedRangeXYPlot. In all cases, the axes of the individual plots are overriden with a combined axis by the Combined*Plot. This works really well for most of my data analysis needs, but I could really use a class where the individual plots share a common domain and range axis. ...

57. problem with date format in plotting charts    jfree.org

Hi, I am doing a project on shares and its trade and some plotting of charts is involved in this project. I'm using JFreeChart for this. But i have a database with some index values and i need to retrieve those index values and plot the time series charts The problem is, For historical charts, i get the start date from ...

58. Saving and reloading plot properties    jfree.org

Folks'es, my users always want to look an application the same when they start it, as it looked the last time they had it running this means i would like to save the plot properties a user might have configured via the popup. and of course i would like to reload it at the next start of the application. is this ...

59. [Solved] Parametric Plot    jfree.org

Hello world, I would like to know if it is possible to create a parametric curve in JFreeChart like : x = a . sin (nt+c) y = b . sin (t) I tried with the XYLineChart class but the JFreeChart doesn't take care about the dataSet point order and updates the curve like an affine function. Thanks for your ansers. ...

60. org.jfree.chart.plot.ColorPalette docfix    jfree.org

/** * Returns a color. * * @param izV Index into the palette (0..255). * * @return The color. */ public Color ...

61. Plotting Dynamic Charts!!!    jfree.org

Hi, I am plotting four different charts on the same panel using GridLayout(2,2) format. Now I have to include a JButton for refreshing the chart vlaues.What layout should I use and how so that my panel keeps four charts in a 2X2 format and a button at the bottom!!! Also,I am taking the dataset values by parsing a text file which ...

62. Combining different plots    jfree.org

Hi all i'm new with jfreechart and i'm confused in combining different plots... the documentation and the demo code coudn't explain me that enough. i wanna plot a chart with three areas and two lines... is the following way wrong? 1. i creat two XYSeriesCollection. One for the areas and one for the lines... 2. i creat the first XYSeries and ...

63. Timed plot with updating data file    jfree.org

Hello all, First of all, I am new to JFreeChart and recently started to program with Java and I am excited about it. I been having fun making plots with JFreeChart because of its ease to use but I am stuck with on a problem. I want to make a chart that reads in data from a text file that gets ...

64. Curve plot filling the integral area of specific peaks    jfree.org

Curve plot filling the integral area of specific peaks by stavang Mon Apr 16, 2007 11:28 am Hello, I have a curved graph, with several peaks, and I want to fill the integral area of some of the peaks Example: My first thought was to define one dataset for the graph. The peaks I would render by using a XYDifferenceRenderer ...

65. Can the chart cache the bitmap representation of the plot?    jfree.org

Hi all, I have numerous charts that can have hundreds to thousands of points, these are contained within a JScrollpane. When I scroll the charts they must be re-calculating the points and drawing off-screen then the chart refreshed on-screen. This process seems to take too long - it makes my GUI appear unresponsive. Is there any way to cause the charts ...

66. Secondary plot overlaps values in ExtendedStackedBarRenderer    jfree.org

Hi, I'm using the ExtendedStackedBarRenderer to display the totals of all series in a category at the top of the bar. I'm also plotting a secondary line axis(using LineAndShapeGenerator) and can't find a way to prevent the secondary axis plots from overlapping the numerical values from the stacked bar chart in some situations. The problem is that the maximum range for ...

67. Support for User Locale formatted data on X, Y and plot area    jfree.org

hi I have been using JFREE charts 1.0.1 and have also purchased the pdf manual. I have been using almost every chart type like bar,line,layered etc. I need my charts to works for different user locales and at present I need them to work for US ENglish and GERMAN number locales. It seems they do not work GERMAN numbers like for ...

68. Create a selection rectangle on a plot    jfree.org

Hi all, I would like to create a rectangle of selection on a plot which select the area from a point that I choose by a first cursor to another point. In summary, I want a create a rectangle which changes the background color, and that can be change in live, to select a part of a plot. Can you help ...

70. Is it possible to create stem plots with JFreeChart    jfree.org

hi, I am new to JFreeChart. I reviewed the developer's guide and source code and did not see any information concerning this question. I wanted to know if it is possible to create stem plots similar to what you can do in MatLab? If so, could you provide an example? Thanks for any information regarding this. -- tbb

71. Height of the plot    jfree.org

Hello all, I have a problem with de height of the charts, my problem is that Im combined some charts in one but i want that the height fo rangeAxis can be different and i dont know to do this. I think that it can be something about the XYPlot but im not sure. Thanks a lot.

72. Plot Height and Width    jfree.org

73. Box-Whisker Plot Supported?    jfree.org

I am looking for an open-source Java plot library that produces quite polished plots and can be used in an applet. JFreeChart seems to excel in these respects. However, our application domain is a technical/scientific one and we need a few chart types that are common in statistics. Specifically, we need support for the Box-Whisker Plot. Does JFreeChart provide this plot-type ...

74. plot original location in chart    jfree.org

75. how can I find the origin of the plot in the chart    jfree.org

First off, please do not bombard the forum with multiple posts asking the same question: plot original location in chart, plot original in image, and this one. If you wish to clarify a question, please post a reply to your question. Spamming the forum just serves to alienate and irritate people which is the opposite of what you want to happen. ...

76. 3D Bubble Plot    jfree.org

77. binding the Title of the JFreeChart to plot location    jfree.org

Hi, im new to JFreeChart but have so far been very impressed with the range of function and the visual configurability that the component offers. I have so far only found one issue with configuration to my specified visual prototype, and that is placing the title so that it binds to the top of the plot area itself as shown in ...

79. Changing Weights of Subplots in Combined Plots dynamically    jfree.org

Changing Weights of Subplots in Combined Plots dynamically by haibaer Thu Aug 02, 2007 10:41 am Hi, I'm new to JFreeChart (about 1 week experience); and I got the following Problem: I have a CombinedDomainXYPlot showing 4 Subplots. Each of them has a TimeSeriesCollection. Each of the Collections has N TimeSeries. Now I want to give to the user the ...

80. problem with plot area positioning!!..urgent    jfree.org

hi I am trying to draw a chart which has fixed dimension(500, 400)....what i want is to set the plot area (440, 220)..i want the domain axis to be placed 40 units from left edge of chart and range axis 60 units from the bottom...... i also want to place the chart title in fixed rectangle area..... btw i dont use ...

81. How to put a title on a plot?    jfree.org

82. How to plot the new chart on existing chartpanel    jfree.org

Hi!, I a reading data from csv file & plotting a Line Chart.I have added a 'refresh' button on the chart panel.I want that when the refresh button is pressed, chart should be plot freshly, with new values, if the csv is changed. I am new to java & caught in this problem for a long time, pls help.

83. How to achieve a Plot like this!    jfree.org

84. Normal Probability Plot    jfree.org

Such a non-linear axis would be a nice addition to JFreeChart. Do you have a link about how the "quantile" values are calculated. I presume that the axis never quite reaches 0.0 or 1.0, so as you get closer and closer to those values, how do you decide which tick marks to display and label?

85. Updating a plot - can I do this faster??    jfree.org

Hi, I have an XY scatter plot of several datasets. The datasets change during a calculation in the other parts of the program, and I want to update the plots accordingly. Note that this is different to adding points to the end of a series, as all the datapoints can change, so I have to clear each XYSeries and re-draw. The ...

86. Plotting two XYSeriesCollection not working.    jfree.org

Hi, I'm trying to make a plot from two XYSeriesCollections on one graph. The first collection should be rendered as points, and the second collection (which are best fits to the points) as lines. But, when I try it as shown below, only the lines plot (i.e. the first collection is not shown). What am I doing wrong? Cheers, Arwel Code: ...

88. Problem while plotting huge data, pls help, Urgent.....    jfree.org

Hello, Pls respond to this mail. I am using Jfreechart(for line chart) to plot about 1 lakh data points. But it takes almost 20 min. I don't why it should take this amount of time. I used in applet and server side. But almost same time taken and the browser also becomes hang. I took the value from database and in ...

89. Regarding data plotting    jfree.org

Regarding data plotting by rr0020175 Thu Feb 14, 2008 12:45 pm Hi, I've data for every 15 minutes of a day(24 hours). I need to show it in a daily graph. If i should plot all these 96 (24*4) data, The graph is not showing the exact 15 minutes plotting point for 24 hours. It shows like 2-4hour, 4-6hour in ...

90. fixed plot area    jfree.org

Hi All, I'm creating multiple horizontal barcharts of the same size, I would like the plot area be fixed in size and position within all charts. The problem I have is that the plot area position/size depends on the category labels (horizontal labels). Long category labels moves the plot area to the right or make it shrink. Does anyone know how ...

91. Plot Negative Infinity and Positive Infinity    jfree.org

How to plot a -Infinity & +Infinity using jfreechart. i am using a bar chart to show the chart on my jsp page there is a situation where in i should show -infinity and +infinity values on chart. since -infinity is the minimum value i am not able to get it on to the plot and also since +infinity is a ...

92. Plotting SQL Data using JFreeChart    jfree.org

Firstly, I'm no java Guru and I've been using JFreeChart for 2 weeks. My task is to retrieve timeStamps and values (doubles) from an SQL database and provide a plot. The timeStamps are equally spaced "chunks". Ie, there may be 100 time stamps with 2 seconds between, then there may be 1000 timeStamps with 60 seconds between. Originally I thought a ...

93. Plot data ordering    jfree.org

Hi.. In my application of showing quote averages, the plot data comes in, will have random timestamps, and is not ordered. i.e. plotdata[0] is a quote for 2-JAN-2008 09:35:00 whereas plotdata[1] corresponds to a quote at 2-JAN-2008 09:20:00 If I use the plot data to draw a graph, the graph comes in zig zag fashion. Is there a property I can ...

94. Can jfree put arbitrary type plots in one chart?    jfree.org

I need to fit 2 horizontal barchart plots right next to each other, in one chart. The 2 charts show the percents of different entitities, so CombinedRangeCategoryPlot can do the job. What I dont want is to have these 2 charts on top of the other, sharing the range axis. For aesthetic and presentation reasons, I want them next to each ...

95. Seeking Design Advice for New Plot Type    jfree.org

Seeking Design Advice for New Plot Type by tuma Sun May 25, 2008 4:05 am I am an open source developer, and I've been using JFreeChart since 2001. I will be creating a new type of plot, and I hope to contribute the resulting code back to the JFreeChart project. This new plot type is inspired by the "bubble chart" ...

96. Problem with Plot's outline    jfree.org

Hello, I have encountered a problem when I was trying to put the plot's outline invisible. It works well on 2D chart like BarChart or StackedBarChart, but doesn't work with 3D chart (like BarChart3D, StackedBarChart3D or LineChart3D) I used the function "setOutlineVisible" to do that. So my question is : did I use the wrong function to do that or is ...

97. XYZ Plots    jfree.org

I'm trying to plot 3D data (X/Y graph over a series of days). While I see that JFreeChart has an XYZDataset (along with a nice comment in the source code about yet-to-be-implemented 3D support), what are the plans, if any, to develop a 3D chart that would be capable of displaying this data? Is this still a work in progress, or ...

98. Plotting more than one distribution    jfree.org

Awesome, I have got it sorted now. Thanks every so much for your help! Is there any way to reproduce the line indicating the mean, as shown in the example diagram I gave in that link earlier? The vertical line going from the x-axis through the distribution curve. I imagine I would need to follow your advice in the link you ...

99. Plotting time data formatted in a certain way    jfree.org

Plotting time data formatted in a certain way by Siniz Mon Jul 21, 2008 12:09 pm I am new to this forum and to JFreeChart, so hello to you all! I am in need of creating a time-data plot. I was browsing the net for finished java graph solutions (to save time) and ended up finding JFreeChart, which looks like ...

100. Plotting discrete values    jfree.org