how do I create VerticalBarChart without static array?

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

how do I create VerticalBarChart without static array?

Post by Haral Tsitsivas » Wed Jul 31, 2002 3:49 am

I want to generate a VerticalBarChart but I don't know how many entries or their values beforehand (the values are read from a generated data file)... With Pie-Charts I can use setValue to dynamically add new elements but what do I do for VerticalBarChart?

BTW, the examples all generate VerticalBarCharts with static arrays...

Bryan

Re: how do I create VerticalBarChart without static array?

Post by Bryan » Wed Jul 31, 2002 9:28 am

Haral

Have a look at the source of jdbcXXXXDataset. They are all dynamic depending upon rows returned from the database. Maybe they can point you in a way to get started

Bryan

Locked