How to make updating chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
RedBark
Posts: 1
Joined: Sat Jul 09, 2016 8:11 pm
antibot: No, of course not.

How to make updating chart

Post by RedBark » Sat Jul 09, 2016 8:29 pm

Is it possible to make a chart that is able to switch its data sets dynamically?

To clarify what I mean, what I want my chart program to do is switch datasets without creating a new chart. The chart needs to be responsive to JCombo box.

If it is possible how would I approach this.

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: How to make updating chart

Post by John Matthews » Sun Jul 10, 2016 2:44 am

This example, while verbose and not type-safe, illustrates the essential mechanism: update the dataset and the listening chart will update itself in response.

Locked