Line « LineChart « JFreeChart Q&A





1. linechart: only 2 line are rendered    jfree.org

linechart: only 2 line are rendered by buki79 Wed Jun 22, 2005 8:01 am Hi, I have a strange problem. I want to draw a linechart with 4 lines. I add the values to a dataset and create a linechart from it. All the values are stored correctly in the dataset, as I controlled it by debugging. But the strange ...

2. Display problems with moving time-series line charts    jfree.org

I'm trying to use JFreeChart to display a moving time-series chart. I've set up a simple example that uses TimeSeriesCollection as the data set. I place 2 TimeSeries into the set and set the history count of each series at 100. I have a loop that simply adds a value to each series and then sleeps 100ms. I'm getting a strange ...

3. Multiple lines in Line Chart    jfree.org

Multiple lines in Line Chart by newbiecharter Wed Aug 24, 2005 7:33 pm I am able to create a single Line Chart for my data. I am trying to show my cpu utilization for every 5 minutes. Now I would like to add another line that breaks down my line chart. I would like to have 2 lines on my ...

4. Dashed lines in LineChart    jfree.org

Hi, I've created a line chart that has many lines and would like to distinguish some of the lines with dashes instead of a solid line. I think you can do this by using the BasicStroke class in Java's AWT package and specify the dash parameters in the constructor. I used ChartFactory.createLineChart(), retrieved the LineAndShapeRenderer from the plot, created a new ...

6. problem: more lines in one chart    jfree.org

problem: more lines in one chart by Eristoff Thu Mar 16, 2006 4:42 pm hello! i'm trying to make a chart with more than one line. the datasets look like this: dataset 1: Code: Select all 5 02.01.1951 12:00:00 7,73 04.02.1951 ...

7. Cutting a line of a chart    jfree.org

Hi everyone, I have made a chart with couple of simple line and with a legend and it works great! But now I have to do a cut on one of those lines. Example: I want a line from [3,1] to [4,2] and an other one from [7,4] to [10,7] and I don't want to have two differents fields in my ...

8. Line Chart - bold a certain range grid (the zero line)    jfree.org

Thanks for your reply. I forgot to mention i'm using CombinedDomainCategoryPlot. Setting stroke to axis, resulting in: My code is as follows: Code: Select all final NumberAxis rangeAxis1 = new NumberAxis("Balance"); rangeAxis1.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); rangeAxis1.setAutoRange(true); ...

9. chart line    jfree.org





11. Grid Lines in charts    jfree.org

12. Chart type - time line    jfree.org

13. Creating Animated Line charts    jfree.org

14. Line Size in Line Chart...    jfree.org

15. Questions about line charts    jfree.org

Also more questions!! How can I make my categories not being grouped. I mean I have several categories with the same label but different values, so if I have bannana 8 apple 3 bannana 5 I get displayed on the 'y' axis just the labels bannana and apple, I want the bannana to appear twice. thanks!

16. Can't get line chart lines to anti-alias    jfree.org

I have a chart which is using the same basic approach as the OverlaidBarChartDemo1 to display line charts overlayed on a bar chart. No matter what I do, when I save as a PNG or JPG, the lines on the chart aren't anti-aliased. The text is, just not the lines... I've tried everything I can think of with no luck. Is ...





17. Strange white lines in chart    jfree.org

Strange white lines in chart by MH23 Tue Apr 24, 2007 4:37 pm Hey everybody! I'm having some strange problems with my JFreeChart. First off: here's my chart. As you can see there are some strange vertical lines in it: www[DOT]gtv-muenchwilen[DOT]ch/chart1[DOT]jpg (sorry i'm not able to post URLs as a newbie) I'm using a DefaultXYZDataset which consists of a Double ...

18. Regarding selecting a line in a chart.    jfree.org

Regarding selecting a line in a chart. by aryanarvind Tue May 08, 2007 4:45 pm Hi, I am new to JFree charts and this sounds an interesting API. I appreciate the effort put by the developers Thanks. I have 3 questions, it would be great if some one to analyse and send me a response on the same. QUESTION 1: ...

19. Adding permanent/anchor horizontal lines on chart    jfree.org

Hi. How do I add permanent horizontal lines on a chart? For example, if I want a solid horizontal line where Y=3 and Y=-3, where the X-value doesn't have any bearing. The lines also would not have a separate legend from all the other series lines. How do I do this? Thanks ahead.

20. Clickable lines on a chart    jfree.org

Hi, Can we select a particular line from the chart having multiple lines so that the selected line can be opened in the new tab/window? I have to allow user to select a line from the set of multiple lines plotted on the same chart, so that the user can open the clicked line in a new tab/window. Amol

21. setting individual lines in linechart    jfree.org

hi i m using xyplot to display some 4 or 5 lines.i want to set specific color for each line. i set the color of the line by XYItemRenderer xyir = xyPlot.getRenderer(); xyir.setSeriesPaint(index,lineColor); xyir.setSeriesStroke(index, stroke); suppose if i have the 2 lines and if i give red color to first line and blue to the second... On deleting the first line, ...

22. line not visible in linechart    jfree.org

Hi, I tried to create linechart.But,I am not getting any line visible in the linechart.I used the below code: DefaultCategoryDataset categoryDataset=new DefaultCategoryDataset(); Iterator iterator = dataSetMap.keySet().iterator(); while(iterator.hasNext()) { String key = (String)iterator.next(); Double value = (Double)dataSetMap.get(key); categoryDataset.addValue(value,key,value); } JFreeChart linechart= ChartFactory.createLineChart3D(title, "", "", categoryDataset, PlotOrientation.VERTICAL, true, true, true); I also wan know what are the parameters to be passed to categoryDataset.addValue(value,key,value);I ...

24. Exported PDF of a line-chart does not join line?    jfree.org

Hi I'm using jfreechart and include the raw-image (vector-image) inside PDF-reports. All is fine and good, except: If you zoom-in to the lines, you will see, those lines are not joined, each line-segment is drawn by it's own. It gets more obvious, if you specify a larger stroke size (e.g. 7), as seen in the attached image (especially on the red ...

25. Curved Line Charts    jfree.org

26. Need Help with line charts    jfree.org

Hi there, i am a total noob in java programming so i was hoping some kind soul is able to provide me with some tips to get started. All i wanted to do for now is to create a line chart from a given set of data. How can i go about doing it using eclipse? Please help, much appreciated.

27. LineChart: Line at the end of the range (X-Axis) is truncate    jfree.org

Hi I have a line chart. The data defines the range of the X-Axis (Date). That means the line goes to the end of the X-Axis. The problem is the following: The end of the line is rounded and this rounding is truncated from the drawing range of the chart. - What can I do? - Is it neccessary to extend ...

29. Line Chart : line is not continous: broken in many places    jfree.org

Hi, This is regarding Linechart and adding more category. I have time axis in X and percentage in Y. I have one category whose X axis values starts at 00:30 and repeats in 1 hr frequency (00:30, 01:30 .... 23:30). I plotted graph for this category alone. the graph is shown perfectly. I added another category whose X axis values starts ...

30. Remove or change the line in the charts.    jfree.org

Hi all, I'm trying to chart some statistics for certain periods, I have no problem with creating and drawing the charts, but I have a problem in customizing the bars. please have a look at the following chart: There is a white thin line in each Bar, I think it's for the 2D effects stuff. I'm using jfreechart-1.0.11. Can I remove ...

31. Outlines in 2D line charts    jfree.org

32. one line hides the rest in a 3D line chart    jfree.org

Hi, I have a 3D line chart created with ChartFactory.createLineChart3D() and sometimes two or more lines might overlap. The result will be that only the last line drawn will be visible like in the image below: What I would like is to take advantage of the 3D effect and have each series' line drawn in different 'depth'. For instance in the ...

33. range gridlines bug in 3D line charts    jfree.org

hi, There seems to be a bug in the way range gridlines are drawn in 3D line charts with a CategoryDataset. You'd expect the gridlines to have an angle when they're drawn on the left wall, but instead they're drawn horizontaly. This is visible in the demo: In 3D bar charts, gridlines are drawn correctly: The problem seems to be that ...

34. how to implement selecting one line(series) in line chart    jfree.org

Hi, I am question about how to implement a function for selecting one line(series) in line chart. specifically, if I have a line chart, there are several lines in the chart, how can I implement selection of one line(series) by double(single) click mouse. And then the selected line is highlighted all. Appreciate for any comments!! Tain

35. simplified API for line charts    jfree.org

37. Adding dot line in the chart    jfree.org

Create a new renderer and override the getItemStroke(int row, int column) method. if you want to select the stroke based on the dataset values and not on the series/item index, your new renderer must be able to access the dataset in the getItemStroke(int,int) method. To achieve that, you could also override the initialise() method and store a reference of the submitted ...

38. Maximum number of lines on a line chart    jfree.org

Hi, I am creating a line chart with 6 different lines on it, but it is giving me error message "Problem occurred creating chart". I successfully created line chart with 5 different lines, that's why I thought there maybe limit on maximum number of lines on line chart. So, my question is, Can't we create line chart with more than 5 ...

39. Changing the thickness of the line in Linechart    jfree.org

Hi, I am creating a dataset with X and Y values and creating a LineChart. Is there any way to change the thickness of the line in the line chart? The line that i get presently is very thick. Is there some method that I can use in the XYPlot or some other class? Basically i want to cutomize the LineChart ...