Point « Component « JFreeChart Q&A





1. Override where jfreechart draws a point at without overriding drawItem    stackoverflow.com

I have this code so far. Right now I want to override where the point is drawn. If the point is below 1 I want to draw the point ...

2. clickable data points    jfree.org

Hi, my application is a desktop application. I have a pie chart and some of the pie sections are clickable while the others are not. I want the clickable pie sections to provide a button like l&f. Currently the way I have implemented it was to have a mouse listener which keeps monitoring the mouse cursor and if it happens to ...

3. How to set decimal point & thousand separator in value a    jfree.org

Code: Select all /** * Set number format for axis. * * @param chart JFreeChart. * @param axisId One of AXIS_xxx. * @param numberFormat DecimalFormat (e.g. "#0.00") ...

4. JFreeChart and adding a lot of points !!!    jfree.org

Hi !!! I want to display a lot of points in my graph. But I have a lot of points to display, and the performance are not good at all. I use the method setValue() of the class DefaultCategoryDataset. I tried a lot of method, and know I have no idea how I can do this. If anyone can help me? ...

5. Million points    jfree.org

6. getDomainCrosshairValue without locking on to data points    jfree.org

Hi I'm using a mouse listener and getDomainCrosshairValue() to get date values from a graph which I'm then using for something else in my app. This works fine (I worked around the previous cited problem of getDomainCrosshairValue() returning the PREVIOUS clicked value by listening for mouse double clicks rather than single clicks ) BUT getDomainCrosshairValue seems to automatically lock the returned ...

8. how Do i Change the order in which points are connected???    jfree.org

hey all, have created a scatter plot and have used a XYLineAndShapeRenderer... I want all the points to be connect like a line graph which works except for one big problem..... The chart appears to be connecting the points according to the x and y poition, that is it is moving though the x axis and connecting to the next point ...

9. First Data Point Not visible    jfree.org

Hi All, I am using a TimeSeries Chart in a J2EE environment. I have noticed that sometimes, especially if it is a large Y-Axis value, my first data point does not show up. I have a refresh mechanism, so after the first refresh, my first and second data point, both show up. FYI, I use an ArrayList to store my data ...





10. about 'hot Point'    jfree.org

12. Show Data points in a chart    jfree.org

I am fairly new to Jfree and CEWOLF. I have a requirement where I need to show data points on a graph in different color or need to emphasize the data points on the graph. Example: http://cewolf.sourceforge.net/new/index.html My graph does not show the data points as the graph is the above example shows. CategoryPlot is used to hold the dataset of ...

13. Smaller points in scatter    jfree.org

14. Fix the numer of data points...    jfree.org

Ok, a new challenge. I have category plot with Line and Bar renderers into 2 datasets. I collect the data from a DBB and I don't know previously the number of data points I recover from it, but I don't want to display a chart with 2 huge big width bars centered on the chart when I ave only 2 values ...

15. Getting a data point location in Java2D space ...    jfree.org

Getting a data point location in Java2D space ... by pauldiamond Tue Jan 17, 2006 7:45 pm Recently, we found that, if we sent the chart's EntityCollection to null, it frees up a LOT of memory. This was a good thing, as the amount of data points we need to render is rather large, and it is being done in ...

16. Limiting number of points    jfree.org

I have a huge dataset of points (TimeSeriesCollection) and would like to limit the number of points in the chart. Ex.: I get 20,000 points from the database and it would be enough to show only 5,000 points: so the points shown would be 0, 4, 8, etc (20,000/5,000= 4). I thought in extend some JFreeChart class to limit the data ...





17. Relocate XY Points ?    jfree.org

Hello, I'm having a problem with displaying XY points on a XYPlot. I've got a lot of Points on a similar position (e.g. (3,5) ). Is there a possibility to have them drawn relocated (e.g. point1 at ( 3,5 ); point2 at (3.1,5.0); point3 at (3.1, 5.0) etc. ) ? Is this functionality already in JFreeChart ? (which renderer ?) Thanks ...

18. how can I draw with points or circles instead of squares?    jfree.org

I have the following code and I would like so that the squares to be small circles or even points. How can I do that? Thanks in advance XYDataset timeseriescollection = createDailyTestDataset(statsResults); dateaxis = new DateAxis( timeString ); numberaxis = new NumberAxis( numberString ); dateaxis.setTickLabelFont( new Font( "SansSerif", 0, 12 ) ); numberaxis.setTickLabelFont( new Font( "SansSerif", 0, 12 ) ); dateaxis.setLabelFont( ...

19. how can I draw a small circle or a point instead of a square    jfree.org

I have the following code and I would like so that the squares to be small circles or even points. How can I do that? Thanks in advance XYDataset timeseriescollection = createDailyTestDataset(statsResults); dateaxis = new DateAxis( timeString ); numberaxis = new NumberAxis( numberString ); dateaxis.setTickLabelFont( new Font( "SansSerif", 0, 12 ) ); numberaxis.setTickLabelFont( new Font( "SansSerif", 0, 12 ) ); dateaxis.setLabelFont( ...

22. Change origin point    jfree.org

hi, i am using cewolf for charting, everuthign is OK, except the origin point ..... my data is (10,100) (20,200) (30,300)..... when the chart is displayed, the origine is (0,0) i would like to be 10,100, in others word take the minimun for x and y coordonate, can you help me please ? i try this code, but i don't know ...

24. point in polygon?    jfree.org

Does anyone know how I can determine whether an arbitrary point in a chart is inside or outside a given area defined as a polygon by a set of points? For example, I have a chart with many non-overlapping series' and I want to react differently depending on the series clicked by the user. Thanks, Darrell

26. Do not join data points when data does not exist    jfree.org

I am using Jfree charts for rendering grpahs for monitoring solution of our application. When is no data in database the data points in the TimeSeries are still joined in the graph. For example: If data is stored from 2 PM to 5 PM and then from 5PM to 8PM data is not collected in database. but data point at 5PM ...

27. Linking chart data points    jfree.org

28. Problem to delete points    jfree.org

Hi all, i use JFreeChart as a dynamic chart. I want to delete the points added which are no longer displayed (because the chart advance) to avoid to have an Out Of Memory, i wrote this code : Code: Select all // get the minimum time of the graph displayed double minTimeDisplayed = graph.getChart().getXYPlot().getDomainAxis().getLowerBound(); boolean stopToDelete = false; // Get the ...

29. change comma and point    jfree.org

30. Question on calculating the length of each data point    jfree.org

Hi, I hope someone may be able to help. With a given time series plot, I was wondering how one could calculate the length of each individual item plotted. For example, when a dataset is plotted as a continuous solid line, Jfree must work out the length of each item. Im guessing it divides the distance between the two extreme points ...

31. Point Symbols/Markers/Shapes    jfree.org

Hello, Is there a library of different Point Symbols/Markers/Shapes and an easy way to use them instead of circles in a ScatterPlot? There was some talk of this on another thread some time ago: http://jfree.org/phpBB2/viewtopic.php?p=1612&sid=b657068778eaa6bfae4233a7db182089 Ideally I would like to use crosses which are mainly transparent as many of the points in the data I am displaying overlap. Using crosses for ...

32. How to detect selected point    jfree.org

Hi, I have a XYPlot. The serie is a line where the user can select a point of the graphic, but how can I get the selected point in the serie? you can see the example here: w3.ualg.pt/~cpinto/GeopescasAPP.JPG where the point at 2 of February is selected, but how can I get the point? Thanks in advance. Carlos

33. How to set start point on XY    jfree.org

34. Help - Drawing Rectangles between two Points (x, y)(x', y')    jfree.org

Hi, I hope my question is not too dumb and maybe I'm thinking too complicated: I have to integrate a visualisation of intervals in a working scatterPlot of Points (x,y). Now, what I have is a Point (x,y) and a corresponding upperBound (x', y') of that Point. The result should be a rectangle with its lower-left point at (x,y) and its ...

35. Deselect points in Scatterplots    jfree.org

Hi! Think I will need some help with this one. I'm supposed to make it possible to choose to remove points in a scatterplot from the dataset by clicking on the point in the chart and from there remove it. My choices to make this possible is either rebuild the "get-the-coordinates-in-the-dataset-by-clicking-in-the-chart" in ScatterPlotDemo3 or make a tooltip. The goal is to ...

36. stepped chart with the step before the point    jfree.org

Dear all, Here is my issue: I need to draw a stepped chart, but with the step being drawn before the point defined. For example if I have the following serie: (1,100),(2,50),(3,70),... I would need to have a step at "100" between 0 and 1, a step at 50 between 1 and 2, etc... I did not find a way to ...

37. 500.000 points !!!!    jfree.org

Does jet to test with 50.000 points for each series but it plant the computer, is what I the series must still cut out? private XYDataset createDataset() { Random rr=new Random(); series1 = new XYSeries("Data 0"); series2 = new XYSeries("Data 0"); series3 = new XYSeries("Data 0"); series4 = new XYSeries("Data 0"); series5 = new XYSeries("Data 0"); series6 = new XYSeries("Data 0"); ...

38. Drawing 500.000 points !!!!!!!    jfree.org

The XYSeries/XYSeriesCollection dataset implementation is quite flexible, but no so memory efficient. You'd probably be better off storing your data in the array-based DefaultXYDataset. The next problem that you'll run into is rendering speed. An optimisation that has been suggested by a few people (but not yet implemented) is to recognise that 500,000 data points plotted in a chart that's maybe ...

39. FastScatterPlot, change point    jfree.org

42. Scatter chart with two types of points    jfree.org

That's not possible for one series with FastScatterPlot. You either have to put the data into two different series and change the series color instead, or you may use a different plot like XYPlot where you can change the renderer. You may then be able to use XYDotRenderer and override the getItemPaint() method or use your own renderer. - martin

43. Updating and showing points position dynamically?    jfree.org

Hi guys, I'm trying to program an algorithm called PSO (Particle Swarm Optmization), and I need to show dynamic graphs, that is, graphs whose points position change quickly. It should be something like that example: uk.geocities.com/markcsinclair/pso.html (obs: click on "entry complete" button, and them "start" button) As can be seen in this example, every point moves from one place to another. ...

44. Circle Two or more points    jfree.org

Hi, Sorry my english, but I'm a brazilian and dont speak english very well... I am learning to use the class JFreeChar. I make a chart where plot some points, when they across the certain limit them, I need to make a circle in all this points ( in sample image down). The JFreechart class, don't have a elipse component . ...

45. Point Chart how to?    jfree.org

46. point selected    jfree.org

thanks for reply. I use JFreeChart 1.0.9 and I've added the line: Code: Select all renderer.setSeriesToolTipGenerator(0, new XYTooltipListener()); to show the point value selected for series 0, where XYTooltipListener is the class: Code: Select all class XYTooltipListener implements XYToolTipGenerator,ChartProgressListener { @Override public String generateToolTip(XYDataset dataset, int series, int item) ...

47. Marker between 2 point!!!    jfree.org

48. Showing data points    jfree.org

49. not link points    jfree.org

Good morning, I wish to make a chart with the library jfreechart. I managed to make a graph of the same type as PeriodAxisDemo. However, I wish that items are not linked together. I can not find a way to do that, nor on what object it is (XYplot, jfreechart ...)? Thank you for your help.

50. 0 gap between points?    jfree.org

I'm having trouble finding a way to create an XY scatter plot that has a 0 pixel gap between points. Meaning, you won't see the background color of the chart all all, each point will have another point immediately adjacent to it on all sides. Obviously, this plot has a fixed scale- no auto scaling and of course my data supports ...

51. fatter/bigger points in spiderweb    jfree.org

52. Draw a point on an existing chart    jfree.org

Hi, anyone know if is possible to draw a point on an existing chart as show in this picture (the green point is 'hand-made' ^^ ): img374.imageshack.us/my.php?image=plot2jd1.jpg I would like to draw a point in a specific time istant (like the green at time=3) and for example, eventually, at time 4 delete the point at 3 and draw a new one. ...

53. How to get a point from chart    jfree.org

Point p = getMousePosition(); XYItemEntity entity = null; entity = (XYItemEntity) chartPanel.getEntityForPoint(p.x,p.y); System.out.println("p :" + p); ...

55. Drawing back to first point....    jfree.org

Re: Drawing back to first point.... by singi_1 Tue Apr 07, 2009 12:37 pm here is my code....can some one tell me why it is drawing back to first point...I am unable to find the mistake.... the output.txt is just as below 10 0.5 11 0.5 12 0.5 13 0.5 14 0.5 Code: Select all public class linechart_new extends ApplicationFrame ...

58. Spiderweb \ Radar Charts: How to fill and connect points    jfree.org

Hello JFreeChart-Users, I'm quite new to JFreeChart and would need your help regarding Radar Charts / Spiderweb Charts. I've already implemented a Radar Chart - and it's working great. Now I would like to know how I can connect the drawed points to an area - and how to fill this area. I already tried setWebfilled() - but it doesn't change ...

59. Highlight selected data point    jfree.org

Hi All, When I mouse over a data point in an YXSeries chart I would like the point to highlight somehow (by changing colour and/or become encircled) to indicate that a particular point is selected. Would someone please be able to point me in the right direction on how to perform this action. Thanks Snoopygee

60. Ability to drag data points?    jfree.org

Hi all, I've a use-case where I'd like users to be able to drag data-points in a scatter diagram - so changing the data value in the underlying dataset. This doesn't appear possible from the demonstrator or the forum contents? Am I missing something? If the capability isn't in JFreeChart I'm willing to have a go at implementing it, but would ...

61. get all points on x-scale-value    jfree.org

i want to know if something i'm planning is realizable with jfreechart. i want to analyze my line chart by moving the mouse pointer somewhere in the graph. now i want to get all points from all lines that are on that specific x-value, for example i moved to 34,12 and i get maybe an array or something with the linepoints ...

62. Creating Curves based on Data Points    jfree.org

Re: Creating Curves based on Data Points by abinashparija Mon May 18, 2009 1:13 pm The Problem of creating XYSpline Chart is Using CreateChartfactory, i cant have a chart Object where tool tip will be true ,So even if Using XYSplinerenderer i can draw splines but unable to enable tooltip.Can any body suggest any solution for the same. the procedure ...

63. Change point shape on hover    jfree.org

64. how to get origin point of the chart    jfree.org

i am trying to change the origin point of my graph dynamically when i drag mouse over the chart . for that i tried in different ways ... like re drawing the chart with next point and etc.., but its not providing me the required result . so my question is ... how the origin points are set in the chart? ...

65. jfree chart points    jfree.org

hey i need to plot data on a jfree chart which has the y axis pointing downwards and the x axis pointing horizontal i.e in other words it should be somewhat like a chart having negative y axis and a poitive x axis but since i cant find ne way to do that i wish if ne knows how to go ...

66. How to make square shape point in step chart for a value    jfree.org

There's a few options: (1) Modify the renderer to display shapes (I didn't write this renderer, but I think it should be easy enough to add shapes back in, because it subclasses XYLineAndShapeRenderer); (2) Overlay the points by adding a second dataset (a clone of the first) and renderer to the plot. (3) Use plot annotations to highlight the points (e.g. ...

68. value is not getting plotted on exact point    jfree.org

Hello , I am making a Transaction Graph where on X-Axis time is shown.On Y -Axis no of transactions are getting displayed. Everything is fine .I am getting my chart as per the requirement.But there is only one issue. On the X-Axis the value is shifting away from the exact point.Suppose on 10th point value is 20 it's getting plotted towards ...

70. Is there a minimum number of points to generate a chart?    jfree.org

Hi Folks ! I am developing an application that queries a database to create a chart. I am using a TimeSeriesChart but the chart is only generated when there are more than three points to plot. Is there a minimum number of points so that I can generate the chart? Is it possible to generate a graph with a single point? ...

71. any one of you remembers or point to alternative site    jfree.org

Hi, some books in the field of Human Medical Science have to be republished with updates , I know there is a site where I could do all modifications online but I dont have its URL nor I can remember. If any one of you remembers or point to alternative site will be greats.

72. Different symbols at each data point    jfree.org

Is it possible to specify the shape of each data point on an XP type plot. I have some data where certain values may be erroneous so I want the user to see a different shape or color. For example, if the data is questionable draw a red square instead of a blue circle at the point. Many thanks, Stever

73. Finding the data on a point    jfree.org

Hello, can someone tell me how i can find the right value of the shown graph with x and y coordinates. For example when the mouse moved to the point x,y it should give me the value of this point. Or when on this point there isnt any value it should give me the next one. Sorry for bad english. Best ...