| | | | Browse by category |
Article ID: 2350
Last updated: 29 May, 2018
Question
How can I redraw the IlvChart
or only a specific part of my chart?
Answer
You will need either the entire chart or a part of it to be redrawn:
- If you want to refresh the entire chart, use the
IlvChart.Area::repaint
method. - If you only want to redraw a part of the chart (and optimize the redraw), or a specific object, use the [
]IlvChart.Area::repaint2D[
] method.For example, to repaint an
IlvScaleAnnotation
added to anIlvChart
(when its value has changed), follow the code provided below:IlvScaleAnnotation annotation = ...;
IlvChart chart = ...;
Rectangle2D bounds = null;
bounds = annotation.getBounds(bounds);
chart.getChartArea().repaint2D(bounds);
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 2350
Last updated: 29 May, 2018
Revision: 3
Views: 622
Posted: 01 Feb, 2011 by
Dean J.
Updated: 29 May, 2018 by
Gargani A.
Also listed in
Others in this category
Powered by KBPublisher (Knowledge base software)