Paints the chart panel, including its Background, Header, Footer, Charts, etc to the specified canvas and in the specified rectangle. Use the Draw method to paint the chart panel on any canvas you want.
A chart panel is composed of, and draws in the following order, these elements: A chart panel is composed of, and draws in the following order, these elements:
• Panel Itself •Background (the surface or layer behind all chart panel elements) •Gradient (Drawn behind the chart panel elements and obscures the Background) •Header (the area above where the charts are drawn) •Footer (the area below where the charts are drawn) •Legend (the text box that labels the charts or their values) •Foreground (the surface or layer in front of all chart panel elements) |
Every element is optional and is controlled by their Visible property.
In addition, the
ChartShadow defines the attributes of the shadow that all chart elements can optionally cast.
Namespace: RSChartPanel
Delphi |
public |
Parameters
Canvas
Type: TCanvas
ARect
Type: TCanvasRect
The following code draws the chart panel in a paintbox's canvas: Delphi |
procedure TForm1.PaintBox1Paint(Sender: TObject); |