DataSet Convertion

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Anon

DataSet Convertion

Post by Anon » Wed Dec 01, 2004 8:13 pm

I am trying to Graph Exchange rates.

I am preparing a default dataset which is TimeSeriesColeection (with two Time Series for bid and ask)

I need to support multiple graphs
1) Line
2) Point
3) Bar
4) Candle Stick

I am able to manage point and line chart, but the barGraph has overlapping Bars for the two series.
CODE:
barChart = ChartFactory.createXYBarChart(currentSymbol, "Date",true, "Price Per Unit",
(IntervalXYDataset)dataset ,
PlotOrientation.VERTICAL,
true,false,false);


And also I need some help converting TimeSeriesCollection to OHLCDataset

Any suggestions is please so quickly :idea:

Thanks

anon

I guess it is not posiible

Post by anon » Thu Dec 02, 2004 5:46 pm

May be

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Fri Dec 03, 2004 8:31 am

May be nobody understands what you want? I don't understand the ovelapping issue.

Martin
Posts: 23
Joined: Thu Apr 24, 2003 10:25 am
Location: Germany-Essen

Post by Martin » Fri Dec 03, 2004 2:28 pm

Hello,
what is about the following workaround to create different charttypes based on the same data:
  • put the data in a persistent vector
    set up methods to create the different datasets by looping the vector and grab the data at the relevant counter

cheers
Martin

Locked