Optionally, you can attach a chart to a chart panel (TRSChartPanel).
Chart Panel (TRSChartPanel) on a form. It provides the panel or the canvas which is the visual parent of the charts (and where they are drawn) and where the user interacts with the charts (zooming, panning, selecting). The TRSChartPanel component provides the ability to significantly customize the look and feel of objects that are drawn with a chart: axes, legend, shadow, gradients, foreground and background, etc.
A TRSChartPanel allows you to group charts; edit axes, header, footer, the built-in legend, and layers; and allows the user to zoom, pan, and select charts. Drag and drop a TRSChartPanel control onto the form.
Set the Panel property of the chart to the TRSChartPanel you want the chart displayed inside or nil for stand-alone use. When you set the Panel property of a chart, it also changes the Parent of the Chart to the TRSChartPanel, which will move the chart inside the chart panel. At design-time, you will see two displays of the chart: as a control and inside the chart panel. Note that more than one chart can share the same chart panel.
Displaying Chart in the Chart Panel (TRSChartPanel)
|