Page 1 of 1

KAGI style charts

Posted: Mon Mar 08, 2004 11:37 am
by fredatwork
Hello,

Is is possible for JFreeChart to display KAGI-style charts, that is charts with vertical and horizontal lines only ?

I tried to modify the LineChartDemo2.java file to try this, but the result is not satifactory :cry: .

private XYDataset createDataset() {

/* I modified this serie only */
XYSeries series1 = new XYSeries("First");
series1.add(1.0, 1.0);
series1.add(1.0, 4.0); // Create vertical line
series1.add(2.0, 4.0); // Create horizontal line
series1.add(2.0, 3.0); // Create vertical line
series1.add(3.0, 3.0); // Create horizontal line
series1.add(3.0, 7.0); // Create vertical line
series1.add(4.0, 7.0); // Create horizontal line
series1.add(4.0, 5.0); // Create vertical line


Fred