Redrawing a specific part or the entire IlvChart

Article ID: 2350
Last updated: 29 May, 2018
Article ID: 2350
Last updated: 29 May, 2018
Revision: 3
Views: 581
Posted: 01 Feb, 2011
by Dean J.
Updated: 29 May, 2018
by Gargani A.

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 an IlvChart(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: 581
Posted: 01 Feb, 2011 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category