Draw « LineChart « JFreeChart Q&A





1. Drawing splines in LineChart    jfree.org

2. Line Chart - Drawing no value.    jfree.org

I am making a basic Line Graph. I am doing the following to add values. dataset.addValue(20,"Series1","Year1"); dataset.addValue(25,"Series1","Year2"); // Line 2 dataset.addValue(30,"Series1","Year3"); Now lets say I dont have a value for Line 2 but I still need a "Cup Holder" to display the empty spot. So Year2 is still displayed in the X-axis with no value. And then Year1 and Year3 will ...

3. Is there a way to draw a curved line chart?    jfree.org

Instead of drawing a line chart, is there a way that I can make the line curvi-linear (e.g. a cubic spline or something like that)? How would I do it? Do I need to extend or subclass a renderer? If so, which one? Any guidance on this would appreciated. Thank you, Richard

4. I can't draw LineChart!    jfree.org

I can't draw LineChart! by jannisery Thu Nov 09, 2006 8:00 pm Hi everyone, I have a database and i want to draw a line chart which has it's data from the database... I've added the datas into the dataset but i have no idea how to draw it... I bought developer's guide but i can't do it either... Please ...

6. How to draw Line Chart or XYLine Chart with Dates on XAxis    jfree.org

Code: Select all dataset.addSeries(tsAddsTUC); String chartTitle = "Total Usage: " + DateStartStr + " - " + DateEndStr; ...

8. to draw linechart    jfree.org

You have already posted that question (http://www.jfree.org/phpBB2/viewtopic.php?p=73326&highlight=#73326). Cutting out some code as you have done above moves your snippet further away from an SSCCE (small, self-contained, compilable example). Providing such a small, code snippet that users can run right away strongly increases the likelyhood of getting an answer. Since I have some time to spent: you have made your code overly ...





10. Draw median line on Line Chart    jfree.org

11. Problem in drawing smooth curve lines in a Line Chart    jfree.org

Hi, I am using JDK 1.5 and Jfreechart 1.0.9.. I need a line chart in which the points should be connected by smooth curved lines instead of straight line...I came to know that XYSplineRenderer would do that.But my problem is that XYDataset can be constructed from XYSeries and XYSeriesCollection which takes only numbers for X-axis and Y-axis co-ordinates...But my data can ...

14. Category-based Linechart, line not drawn    jfree.org

Hi, I have two category series, lets assume: Serie1 a = 2 b = no value c = 3 d = no value Serie2: a = no value b = 2 c = no value d = 1 Using linchart it just renders the shapes, but no line between the values (obviously because there's no y value for every x). Lines ...