who can give me an example of dynamic barchart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yuansc
Posts: 3
Joined: Wed Jan 31, 2007 7:24 am

who can give me an example of dynamic barchart

Post by yuansc » Wed Jan 31, 2007 7:40 am

thanks very much

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

Post by angel » Wed Jan 31, 2007 8:34 am

What is a dynamic barchart?

evan
Posts: 14
Joined: Thu Feb 08, 2007 6:26 pm

Post by evan » Fri Feb 16, 2007 10:49 pm

I think it means the lengths of the bars get updated automatically whenever the underlying dataset is changed.

I've also got an application that needs this sort of functionality. Any suggestion would be very much appreciated. Thanks.

DragQueenMum
Posts: 1
Joined: Wed Feb 21, 2007 8:41 pm
Location: Austria

Post by DragQueenMum » Wed Feb 21, 2007 8:52 pm

--> Does anyone have an example-source for such a "dynamic barchart"??

In my case, the dataset should be changed via JSliders (the sliders work, the'startdataset' works and I'm searching and searching the web but I can't find an Example Code that changes my dataset (Integers and Doubles should be changed)??)

--> I hope that anyone can help me, greetings from Salzburg

DragQueenMum

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Feb 22, 2007 4:42 pm

BarChartDemo10.java (source code included with the JFreeChart Developer Guide) updates a dataset dynamically. It uses the DefaultCategoryDataset class --- updating is a simple call to the setValue() method.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked