The ChartPanel class registers itself with the chart it displays, and whenever the chart changes, the panel redraws itself.
The ChartPanel class registers itself with the chart it displays, and whenever the chart changes, the panel redraws itself.