KAGI style charts

Discussion about JFreeChart related to stockmarket charts.
Locked
fredatwork
Posts: 27
Joined: Mon Mar 08, 2004 11:28 am

KAGI style charts

Post by fredatwork » Mon Mar 08, 2004 11:37 am

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

Locked