LineChart « LineChart « JFreeChart Q&A





1. Jfree chart change Y axis data    stackoverflow.com

I am using Jfree chart 0.9.20's XYLineChartDemo for plotting the execution time of running processes in a program. My X axis denotes the time and Y axis should denote the Pid. ...

2. JFreeChart - Vertical Line Chart    stackoverflow.com

HI how to create a chart like http://livedocs.adobe.com/flex/3/html/images/VerticalLine.png. Using XYPlot. Thanks in advance.

3. A new JFreeChart, line chart, can you help me?    jfree.org

Hi, i am a new user of this forum. I have use jfreechart in my java application, but i can't at realize my project. I would to creare a graphic to visualize my date. I would insert in the x axis, the day of the mounth in this format (gg-mm) and in the y axis i would insert a double value. ...

4. "replay" a recorded dynamic Line Chart    jfree.org

Re: "replay" a recorded dynamic Line Chart by ginkg0 Thu Dec 29, 2011 4:42 pm EDIT: Oh i made it ! Just forgot to call it from a new Thread -.- This can be closed. --------------------------------------------------------------------------- Ok now i started to build two solutions, the second one is with a TimerTask which is adding the value pairs. Second one is ...

5. ItemLabels out of positon in LineChart JFreeChart 0.9.18    jfree.org

Hi, I draw a LineChart and try to set the ItemLabel positions using: ItemLabelPosition position1 = new ItemLabelPosition(ItemLabelAnchor.OUTSIDE3, TextAnchor.CENTER_LEFT); renderer.setPositiveItemLabelPosition(position1); But somehow the labels are completely out of position. Has anyone successfully used the ItemLabels with a BarChart or can at least confirm the problem? I have similar problems with AreaChart and others. Only the BarChart works.

6. line chart    jfree.org

8. LineChart with smooth curves    jfree.org

9. Line chart    jfree.org





10. How to get x,y for XYPointerAnnotation in simple line chart?    jfree.org

Next problem: you can not specify to which vertical axis the annotation should be resolved. I have several but the range value (the Y) is always resolved against the first. The following method may be a temporal solution in solving this: Code: Select all XYPlot chartPlot = ...; ValueAxis defaultRangeAxis = chartPlot.getRangeAxis(); ...

11. Overlay Problem with StackedVerticalBar and Line Chart    jfree.org

I am trying to overlay a stacked vertical Bar Chart with a Line Chart. The verticalStackBar always overwrites the Line Chart . As a result the Line Chart is not visible . I have written the following postprocessor for displaying the stacked vertical Bar . <% final com.testing.BarGraphData barGraphData1 = barGraphData; final com.testing.LineGraphData lineGraphData1 = lineGraphData; ChartPostProcessor postprocessor1 ...

12. Regarding line chart & MinMaxCategoryRenderer    jfree.org

Hi, Am using jfreechart 0.9.15. Using this, is it possible to add a MinMaxCategoryRenderer to a line chart? i.e is it possible to join the max and min values at each plot in a line graph with a line? Thanks in advance. Sorry, if this is a basic/already discussed topic. Since am new to jfree, might have missed out something.

14. Line Chart    jfree.org

by Souma Sat Nov 26, 2005 12:04 pm Here are the basic codes for a Line Chart to work Geez... I do hope any other people in these forum provide codes for newbie to learn/start from (espically my problem mentioned in my thread)... The demo applications provided in the package is not really "digestable" to newbie... It takes me quite ...

15. Domain Labelling in Line Chart.    jfree.org

Hi, I created a line Chart. Now the problem arises when I try to format the domain axis labels according to my requirement. Currently they are displayed like Jan 01 Feb 06 Mar 07.....etc. But my requirement is to display them something like Jan Feb Mar ......likewise. 01 06 07 Any hints how to go about it. Any help will be ...

16. Domain axis labelling in Line Chart.    jfree.org

Hi, I created a line Chart. Now the problem arises when I try to format the domain axis labels according to my requirement. Currently they are displayed like Jan 01 Feb 06 Mar 07.....etc. But my requirement is to display them something like Jan Feb Mar ......likewise. 01 06 07 Any hints how to go about it. Any help will be ...





17. LineChart    jfree.org

19. Hide Ticks in Line Chart    jfree.org

Hi everybody. I've created a LineChart using a CategoryDataset. The chart has a Time-stamp axis (hour and day) and a value axis. I would like just to hide some ticks, so when the chart has many values, the timestamp axis donesn't become unreadable. I couldn't find a way to do it in the forum and the truth is, that I'm new ...

20. remove line chart from combine chart    jfree.org

Thanks James for reply me. If i must redraw the candlestick, it is not efficient. If i have one candlestick and six line chart, it means we must redraw one candlestick chart and five line chart. i still searching how to delete it more efficient. if i can not find it, i think i will redraw it . If i use ...

21. LineChart - IllegalArgumentException    jfree.org

LineChart - IllegalArgumentException by MaruTheJapaneseCat Wed Feb 08, 2006 9:51 am Hello. (Sorry for my poor English) I'm trying to make a line chart. I could make a chart with fixed data but I coudn't with DB data. The error seems "row" is the problem but I don't know WHY. Please tell me what's the problem and let me know ...

22. LineChart with multiple Y axis....    jfree.org

Hi, I need help regarding LineCharts. I tried generating a line chart with multiple Y axis......I reffered to the multipleaxisdemo class (given for time series chart) to get my line chart with 2 'Y 'axes. The problem is i have to generate this chart ,by getting data from a .csv file......the Csv class reads only a Categorydataset whereas for my createXYlineChart() ...

23. How to use the setVerticalTickLabels method in LineChart    jfree.org

I just recently purchased the developer guide and successfuly created my first LineChart. The problem I have is, that I cannot set the tick labels to vertical orientation. Horizontaly, they show up as .. The X axis labels are strings and the CategoryAxis object does not have setVerticalTickLabels method. My call is: CategoryAxis axis = plot.getDomainAxis(); Thanks in advance for your ...

24. Crosshair not working in candlestick chart(OK in line chart)    jfree.org

Crosshair not working in candlestick chart(OK in line chart) by wzwei28 Mon Mar 13, 2006 10:59 am JFreechart version:jfreechart-1.0.0-rc1 Hi David and other experts, I have a question, When I include following code: Code: Select all //@@ Crosshair XYPlot plot = jfreechart.getXYPlot(); Stroke m_srkCrosshair = new BasicStroke(1); ...

25. How to encode LineChart    jfree.org

I'm not sure what you are asking. Do you want to save the chart in PNG format? Or were you thinking of storing the chart in some other form (some XML-based format, say) for reconstruction later? The latter isn't supported, although you might be able to save the byte-stream from serializing a chart (it is intended to work, but isn't 100% ...

26. How to create line chart (many groups and many series)    jfree.org

How to create line chart (many groups and many series) by Emm.Gao Mon Mar 27, 2006 3:41 am I know that stacked bar chart can do that, but in line chart , how to set Domain Axis? Stacked bar chart code: import java.awt.*; import org.jfree.chart.*; import org.jfree.chart.axis.SubCategoryAxis; import org.jfree.chart.plot.*; import org.jfree.chart.renderer.category.GroupedStackedBarRenderer; import org.jfree.data.KeyToGroupMap; import org.jfree.data.category.CategoryDataset; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.ui.*; public ...

27. Strange Issue with Line Chart...    jfree.org

28. Linechart with Trendline    jfree.org

29. Linechart with Many series    jfree.org

I am having the problem when I am generating Line chart for months Jul-Jun I have many series.. X- Axis - Months Y - Axis - Inpatients ,Variance and out patients data (Three lines) Here is my Code.. XYSeriesCollection dataset = new XYSeriesCollection(); XYSeries inpseries = new XYSeries(Inpatient); loop begins inpseries.add(months,value) Loop Ends Same thing for rest of those two. dataset.add(inpseries ...

30. Series break in a line chart    jfree.org

Hi Daniel, As you said values as null would be shown as balnk in line graph, But in my case i want to show gap when data is not collected( ie not stored in database ) for certain period. so there would be no data in database in this particular period and i need to show it as blank. Thanks Jyothy ...

31. LineChart with date-x-axis    jfree.org

32. Problem with Line chart !    jfree.org

Hi there, i am pretty new about using JFreeChart. I created a line chart using an example but now i need to customize this example. My graph is a simple line chart with only one LINE So i need the following : 1) How can i change the foreground color of the line ? For default the line is red, i'd ...

33. Hi Jfree Line Chart    jfree.org

hi everybody, i am not getting the tooltips on a line chart which i generated, for Bar chart we have BarRenderer renderer=new BarRenderer(); renderer.setToolTipGenerator(new StandardCategoryToolTipGenerator()); after that we have to plot in CategoryPlot. but in case of Line chart i could not find out the solution. so i need help from anybody. sunny

34. Problem in Dual Axis Line chart    jfree.org

when I compile the DualAxisDemo2.java file it reports the following error "cannot find symbol". ex: DualAxisDemo2.java:49: cannot find symbol symbol : class StandardLegend location: package org.jfree.chart import org.jfree.chart.StandardLegend; This is repeated wherever the following classes methods or objects are used in the code. I cannot find the following classes in my Jfreechart(org.jfree.chart.demo). 1) StandardLegend 2) StandardXYItemRenderer 3) XYItemRenderer 4) XYDataset The ...

36. Lend and Line chart problem    jfree.org

Lend and Line chart problem by asawari Thu Sep 14, 2006 6:36 am /** *

Title:

*

Description:

*

Copyright: Copyright (c) 2006

*

Company:

* @author not attributable * @version 1.0 */ import java.awt.Color; import java.awt.Color; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; import org.jfree.data.xy.XYDataset; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; ...

37. LineChart    jfree.org

in my database i have store an attribute date...how i want to display the date in the x-axis......in the x-axis we can display as Monday, Tuesday, Wednesday, Thusday.... till Saturday.....and the other is that i want to display the week1, week 2.....in the x-axis....it is possible for me to do that??????? What is the simple code???????can anyone let me know.... Thanks... ...

38. LineChart work very slow    jfree.org

Hello! I tested JFreeChart a bit and found, that it's great! But I have problem using LineChart in my sevlet. Charts is making very very slow. Simple test: three series with approx. 100 point in each one. Timing is the following: ChartFactory.createXYLineChart works ~6 seconds. chart.getXYPlot().setRangeAxis(new NumberAxis()) ~ 3 seconds (!) ChartUtilities.saveChartAsJPEG ~ 6 seconds My host system is Linux and ...

39. JFreechart Line chart    jfree.org

40. Line chart with deviation    jfree.org

This is something of a newbie question. I'm not quite sure what the name of the kind of chart I'm looking to create is called, so I wouldn't have much luck searching for it. What I'd like to do is generate an XY series (a line plot, with a handful of data sets) where there is a bold line for the ...

41. Jfreechart linechart refresh    jfree.org

Hallo! I have found a source code for a line chart. It works but Im looking for a short command to refresh the chart for instance when I will change the datasets, the figures. I miss a command like chart.repaint() or chart.refresh() ... I tried this: dataset = createDataset(); chart = createChart(dataset); chart.updateUI(); chartPanel.repaint(); but it did not work. Do you ...

43. Problem with TimeSeries (line chart) when reload with DWR    jfree.org

Hello, I think this problem is a bug but I'm not sure I have two tabs, if I click on the first one I will see a pie chart and when I click on the second one, a line chart (Time Series) will appear (both charts represent different data). They are implemented with cewolf and loaded with DWR. The problem is ...

44. MySQL and a simple line chart    jfree.org

45. Line Chart with Dots in it    jfree.org

47. Attaching categoryplot to line chart    jfree.org

OK, first things first: I am a complete newbie to JFreeChart I am a complete newbie to Java! I will be a complete newbie to linux as my currect project continues!! Bearing that in mind, I would be grateful if anyone can help me with the following problem: I have a screen which will contain a line chart and a 'Start' ...

48. Range axis location of Line Chart    jfree.org

Hi all, I'm developing a line chart and find that the location of the Range Axis is varied by the values of the axis, i.e. if the value is larger, the axis label will be longer and the axis will be more far from the edge of the image. However, I have the need to fix the location of the axis ...

49. Sorting x axis element in LineChart    jfree.org

Hi there. I'm using LineChart and I have a sorting problem. When I insert elements, they are adding at the end of the chart. Is it possible to add them so they insert at the right place ? In other words, I would like to sort the elements in a LineChart. Ty

51. Fix range axis location of Line Chart    jfree.org

Hi all, I'm developing a line chart and find that the location of the Range Axis is varied by the values of the axis, i.e. if the value is larger, the axis label will be longer and the axis will be more far from the edge of the image. However, I have the need to fix the location of the axis ...

52. Line chart    jfree.org

53. how to display LineChart X axis coordinate lables vertically    jfree.org

how to display LineChart X axis coordinate lables vertically i am new to JFreeChart.I have successfully used Line Chart in my project,in that X axis coordinate labels are displayed horizontally by default,but what i want is X axis coordinate lables are to be displayed vertically as i am showing time stamp as lables like Oct 08,02:30:50(ie with full date and time ...

54. [LineChart] Too much X-coordinates...    jfree.org

// timeSeries initialisation ... chart = ChartFactory.createTimeSeriesChart(titreGraph, null, ordonneeGraph, dataset, true, true, false); chart.setBackgroundPaint(new Color(0xCC, 0xCC, 0xFF)); XYPlot plot = (XYPlot) chart.getPlot(); DateAxis dateAxis = (DateAxis) plot.getDomainAxis(); dateAxis.setVerticalTickLabels(true); dateAxis.setMinimumDate(UtilitairesDate.ajouterJours(dteDeb, -1)); // = 30/09/2007 in the exemple dateAxis.setMaximumDate(UtilitairesDate.ajouterJours(dteFin, 1)); // = 01/01/2008 in the exemple DateTickUnit t1 = new DateTickUnit(2, 7); dateAxis.setTickUnit(t1); ...

55. how to display LineChart X axis lables vertically    jfree.org

by mahesh_burgu Wed Oct 31, 2007 4:27 pm thanx for quick reply.....but i am nowhere using CategoryAxis..... here is my code............ import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.renderer.category.LineAndShapeRenderer; import org.jfree.data.category.CategoryDataset; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.ui.ApplicationFrame; import org.jfree.ui.RefineryUtilities; import org.jfree.chart.ChartUtilities; import java.io.File; import java.sql.Timestamp; import java.text.*; public class GenerateLineChart ...

56. Line Chart is Very Slow    jfree.org

57. Interpolated line chart    jfree.org

58. "Marker" in a Line Chart (basic support)    jfree.org

Hi! I'm new to jfreechart and everything I try to do is adding a marker (I don't know if this is the correct term) to a line chart. So I have a line with salary data: x-axis age y-axis salary and I want to add just a single image at a specific age and salary which shows the salary of the ...

59. Area chart and line chart with CategoryPlot    jfree.org

Hello, I am building an application that offers an area and line view of data arranged in a category plot. I'm using v 1.0.9. The information is technically date data (by month) but the category plot seems most appropriate for month summary data. I'm trying to get the leftmost and rightmost categories as close to the edges of the plot as ...

61. Line chart automatically moves the zero to middle    jfree.org

When all the datapoints are zero the line chart automatically moved the 0 on the y-axis to the middle of the chat instead of keeping it at the bottom. Is this a bug or is this how it is designed? How can i force the line chart to keep the 0 y value at the bottom of the chart. I tried ...

62. Multiple Line Chart    jfree.org

63. Problem with axis in line chart    jfree.org

I'm trying to customize a linechart, but experience the following problems: 1/ Tick numbers: On the Y axis (NumberAxis) I would like to show the following ticks: 1, 10, 20, 30, 40 No matter what I try, either I get "0, 10, 20, 30, 40" or I get "1, 11, 21, 31, 41". 2/ Margin: there is some space on the ...

66. JFreeChart lineChart problem    jfree.org

67. Is there any way to show multiple line chart on same window    jfree.org

Sort of. In a client application, just put multiple ChartPanel objects into a JPanel using an appropriate LayoutManager (for example, GridLayout). For a web application, you could either use HTML to control the layout of multiple images, or write some Java code to layout the charts within a single image (you can call JFreeChart.draw() to draw the chart into any rectangular ...

68. Line Chart    jfree.org

Hi, I just have a small question. When I begin adding values to the line chart created using ChartFactory.createTimeSeriesChart(), the line created crosses the whole chart from left to right. Is there a way that the new value is just added as a "point" on the right? Hope my question is clear. Thanks

69. Problem with Line chart    jfree.org

Hi, I have a problem with creating a line graph.I want to display my chart to be on the same jsp page where im calling this class. But it displays in the newer window.How can i make it display it on the same page ? I tried this way, not working... final JFreeChart chart = ChartFactory.createLineChart( "Line Chart", "Time","Value", dataset,PlotOrientation.VERTICAL, true,true,false); ...

70. problem with creating line chart using array    jfree.org

hey all, i got some problem with drawing a chart for RSI. I read in some data from "out.txt" and wanted to plot them against "month", which will increase by itself. The problem is for setting the month into the dataset: try { File f = new File("out.txt"); Scanner input = new Scanner(f); while (input.hasNextLine()) { data[i] = input.nextDouble(); i++; } ...

72. Problem with right click option in Line chart...    jfree.org

Problem with right click option in Line chart... by bhaskar_babu Mon Oct 13, 2008 10:29 am I have a problem with the menu popup on right click of mouse. Can any one please tell me the possible mistake in the pieace of code. What all things need to be done for this right click menu? I have the following code ...

73. LineChart, TickUnit, subtitle    jfree.org

LineChart, TickUnit, subtitle by Vagner Mon Oct 13, 2008 5:45 pm I am learning to use the JFreeChart. I have some questions. How I place the unit in the same line of the values of the axis? How I use the TickUnits class and the method setStandardTickUnits to define my values for the axis? How I define the distance between ...

74. LineChart horizontal axis caption    jfree.org

77. line chart superposition problem    jfree.org

78. LineChart Date Order Problem    jfree.org

80. Need Date vs. Date linechart    jfree.org

81. Advanced line chart capabilities?    jfree.org

I'm not sure how to categorize these questions. I've been reading the (full) manual, but no joy. Before investing much more time, I'd appreciate it if anyone could tell me which, if any, of the following would be straightforward in JFreeChart, and which would require serious programming. Suggestions for alternative solutions welcome. Please see: munat dot com slash sample_chart dot png. ...

82. How can I produce such line chart?    jfree.org

renderer.setBaseShapesVisible(true); renderer.setDrawOutlines(true); renderer.setUseFillPaint(true); renderer.setBaseFillPaint(Color.white); renderer.setSeriesStroke(0, new BasicStroke(3.0f)); renderer.setSeriesOutlineStroke(0, new BasicStroke(2.0f)); ...

84. how to update my Linechart    jfree.org

Re: how to update my Linechart by riadhhwajdii Tue Sep 01, 2009 8:12 am could you please explain more there is my class: Code: Select all public class TestJfreeChart implements DatasetChangeListener { XYDataset dataset; public TestJfreeChart() { ...

85. Line chart with different thickness    jfree.org

Morning, I also create and modify my chart on the fly... I pass a vector of objects in and build the set of TimeSeries for that vector like this... private void setTimeSeries() { for (int i = 0; i < legends.size(); i++) { TagLegend legend = (TagLegend) legends.elementAt(i); String tagname = legend.getTagName(); addTimeSerie( tagname ); chartPane.getChart().getXYPlot().getRenderer().setSeriesPaint(i, legend.getColor()); chartPane.getChart().getXYPlot().getRenderer().setSeriesStroke(i, new BasicStroke(2.0f)); } ...

86. Line Chart    jfree.org

Hi, These days i am working on some reports which needs Charts and graphs. I am using jasper reports and it uses jfreechart as the charting library. In there i have a Line Chart with 2 category series. ("Sales items" and "Ordered Items") and here i am using a chart customizer class to customize the chart. Is there any way to ...

87. how to using button to change linechart    jfree.org

how to using button to change linechart by bobby92 Sat Oct 31, 2009 1:58 am hi i have modify my code as follows : Code: Select all import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import javax.swing.JButton; import javax.swing.JPanel; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.AxisLocation; import org.jfree.chart.axis.DateAxis; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CombinedDomainXYPlot; import ...

89. Recompile the libs - only with Linechart    jfree.org

Hi, I would like to use a Linechart in an Applet. I must flash this Applet in an embedded Machine (similar to a Router-Setup-Page). My problem is, that the machine have only max 150k flash-space for JFreeChart libs. Do you have a possibility to recompile the libs only with Linechart (without any for me not necessary parts)? Thanks, dm

91. Dynamic line chart update    jfree.org

Dynamic line chart update by Jbacnet Thu May 20, 2010 3:48 pm hello , I have a problem to automatic update : Code: Select all package com.sauter_controls.jbacnet.chart; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.PrintStream; import javax.swing.*; import org.jfree.chart.*; import org.jfree.chart.axis.*; import org.jfree.chart.plot.CombinedDomainXYPlot; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.StandardXYItemRenderer; import org.jfree.chart.title.LegendTitle; import org.jfree.data.time.*; import org.jfree.ui.*; import org.jfree.util.UnitType; public class DynamicWithLignes extends ApplicationFrame ...

93. Line chart with scrolling    jfree.org

Line chart with scrolling A free public discussion forum for the JFreeChart class library. Post a reply 4 posts Page 1 of 1 Line chart with scrolling by wqa Fri Aug 13, 2010 2:43 am Hi, I have the following Line chart: Code: Select all import java.awt.Dimension; import javax.swing.JPanel; import org.jfree.chart.*; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; ...

94. Setting Interval for DomainAxis in LineChart    jfree.org

If i use XYPLot then if i have to use XYDataset to create dataset for chart. XYDataset uses XYSeries to add values. My x-axis will show date as formatted strings i.e dd.mm.yyyyhh:ss format from startdate to enddate and also cover all hours in a day. So I have x-axis values stored in an string array and each string is of above ...

95. Line Chart wirh XYSeries - How to include Dates    jfree.org

final XYSeries series1 = new XYSeries("New Employee"); final XYSeries series2 = new XYSeries("Left Employees"); final XYSeries series3 = new XYSeries("Fired Employees"); series1.add([b][/b], 1.0); series1.add([b][/b], 4.0); series2.add([b][/b], 3.0); series2.add([b][/b], 5.0); series3.add([b][/b], 5.0); series3.add([b][/b], 7.0);

96. Line Chart Problem.    jfree.org

Hi, First of all, sorry about English. Now I'm trying to make some line graph that views term information. But when all data is 0(zero - not null) the line of graph moves to middle of image. How can I fix it? Would you please tell me the way how to solve this problem?

97. how to create a line chart    jfree.org

98. MULTIPLE AXIS LINE CHART    jfree.org