vcl-dxchartcontrol-947ddc93.md
The base class for the Chart control.
TdxCustomChartControl = class(
TcxControl,
IdxSkinSupport,
IdxChartOwner,
IcxCustomCanvasSupport
)
The TdxCustomChartControl class implements base chart control functionality including diagram management, base appearance settings, support for additional visual elements (such as legend panes and supplementary titles), and user interaction options.
The list below outlines key members of the TdxCustomChartControl class. These members allow you to manage diagrams and customize Chart control appearance settings.
Appearance | LookAndFeelProvide access to general appearance settings.BiDiModeSpecifies the active bidirectional mode.CalculateHitTestCalculates HitTest information for any point within the Chart control client area.HitTest | OnHotTrackElement | OnMouseMoveAllow you to identify the visual Chart element under the mouse pointer and respond to hot-tracking different visual elements.LegendProvides access to legend pane settings.Palette
Allows you to switch between color palettes whose color sets are applied to individual simple series values and XY series.
If the active palette does not have enough explicitly defined colors to draw all affected series or series values differently, the Chart control generates interpolated colors based on existing colors.
Tip
Use the TdxChartPaletteRepository component to create, manage, and apply custom palettes. All stored custom palettes are available in the same list as predefined palettes.
TitlesAllows you to manage Chart control titles.ToolTipsAllows you to switch between tooltip display modes at the Chart control level and customize general tooltip settings.ZoomOptions | ScrollOptionsProvide access to zoom and scroll settings for all XY diagrams in the control.
AddDiagram<T>(string) | AddDiagram(TdxChartDiagramClass,string)Create a new diagram.DiagramCount | VisibleDiagramCountReturn the total number of diagrams and the number of currently visible diagrams.VisibleDiagrams | DiagramsProvide access to visible and hidden diagrams by their indexes.
Tip
To delete a diagram, release it directly in code (call the Free procedure in Delphi or use the delete keyword in C++Builder).
ExportToImageThese two overloaded methods save the current state of the Chart control client area as an individual image in any supported format.ExportToBMP | ExportToEMF | ExportToGIF | ExportToJPEG | ExportToPNG | ExportToSVG | ExportToTIFF | ExportToWMFExport the current state of the Chart control client area as an individual image in corresponding formats.ExportToDOCX | ExportToXLSXSave the current state of the Chart control client area as an inline or floating image container in the resulting DOCX or XLSX document.
Note
The result of all export to image operations depends on the pixel size of the Chart control client area on the current screen.
Refer to individual method descriptions and the following help topic for details: VCL Chart Data Export.
SaveToStream | LoadFromStreamAllow you to store series data from all diagrams in a memory stream. Since these methods work only with series data, you need to create and configure all required diagrams and series to successfully load previously saved data.
To print the Chart control and export its content as a PDF document, add a TdxComponentPrinter component to your project and create a Chart report link.
Refer to the following topic for detailed information and code examples: Chart Print Functionality.
BeginUpdate | EndUpdate | CancelUpdateAllow you to avoid excessive redraw operations during batch data and appearance changes.OnChangeAllows you to respond to any setting or diagram change in the Chart control.
The TdxChartControlReportLink class implements the Chart control’s print functionality.
Do not use the TdxCustomChartControl class directly. Use the TdxChartControl class instead.
TObject TPersistent TComponent TControl TWinControl TCustomControl TcxCustomControl TcxControl TdxCustomChartControl
See Also