point « LineChart « JFreeChart Q&A





3. Show Point Values and Marked lines in Line Chart    jfree.org

I am using CategoryDatset for drawing Line Chart. I have a problem to display the point values in the chart. I have tried showDrawShapes(true) method in previous version. But in new version i could not know how to show it. Pls kindly help and guide to me. Also i want to mark the lines in y-axis how can i do it. ...

4. Line Chart-how to show square point at the junction points?    jfree.org

Hi, I'm creating a simple line chart. I would like to show squares at the junction points/turning points of the lines. What codes should i add? Thanks in advance! My code is as follows: final JFreeChart chart = ChartFactory.createLineChart(title,xLabel,yLabel,dataset,PlotOrientation.VERTICAL,true,true, false); final CategoryPlot plot = (CategoryPlot) chart.getPlot(); plot.setBackgroundPaint(Color.white); plot.setRangeGridlinePaint(Color.lightGray); plot.setDomainGridlinesVisible(true); plot.setRangeGridlinesVisible(true); final NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis(); rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); rangeAxis.setAutoRangeIncludesZero(true); final LineAndShapeRenderer renderer ...

5. Line chart - drawing an average line between 2 points    jfree.org

When I am drawing a Line Chart, and I have eg. years 1 to years 10 in the x-Axis. Now say I have years3 and years4 with null value. But I dont want to have an empty gap, I can draw an average line from year2 to year5. Right now, I can use some mathematics and calculate years3 and years4 but ...

6. Points and Line on Line chart    jfree.org

9. line does not form between two points in a line chart    jfree.org

Hey All, I'm quite new to using JFreechart. I have a problem in creating a line b/w two successive points of a series in a multi series line chart. Please take a look at the img139.imageshack.us/img139/3024/linechartjv2.png The easy series has an entry on '2008-11-02' and then it has an entry on ''2008-11-19'. However, as you can see from the image there ...





10. Line Chart : Some points are disconnected    jfree.org

If it is a line chart based on a CategoryDataset, then the renderer will break the line for any missing values. To change that, you'd either need to calculate the interpolated value and put that in your dataset, or change the renderer behaviour (by modifying the source code). If it is a line chart based on an XYDataset, then the renderer ...

11. Drawing cirlces at data point in line chart    jfree.org

Hi Can we draw small circles at all data point of a line chart ? I know we can use "setSeriesShapesVisible(index, true)" to draw this but if we have more then one series then it draws different shapes for each line(say if i have 2 series then it will draw circle for series-1 and square for series-2). Thanks

12. Dragging Line Chart Points    jfree.org

I have an interactive linc chart that enables me to click a point on the chart which in turn then highlights the corresponding row in my JTable. What I ideally would like to be able to do is to click the point and then drag the pointer UP or DOWN and get it to change the value. Is there an easy ...