vcl-dxchartxydiagram-a9973bc5.md
A secondary axis of arguments.
TdxChartSecondaryAxisX = class(
TdxChartCustomAxisX
)
A secondary axis of arguments allows you to complement the main axis of arguments (X-axis) with a different scale. For example, secondary axes can be useful if you need to display multiple measurement units simultaneously.
Note
The TdxChartSecondaryAxisX class implements secondary X-axis functionality for the Chart control. To maintain an X-axis collection, the control uses the TdxChartSecondaryAxisXCollectionItem class as a wrapper for a TdxChartSecondaryAxisX object.
The list below outlines key members of the TdxChartSecondaryAxisX class that allow you to configure an axis of arguments.
AssignCopies compatible settings between chart axes.DiagramProvides access to the XY diagram to which the axis belongs.VisibleHides or displays the axis.
AlignmentSpecifies the position of the secondary axis of arguments in relation to the orthogonal axis scale.AppearanceAllows you to customize general appearance settings.CrosshairLabelsProvides access to crosshair axis label settings.MinorCountSpecifies the number of minor tick marks.TicksProvides access to major and minor axis tick appearance settings.TitleSpecifies a title for the axis and changes title appearance and position.ValueLabels
Allows you to display and customize axis value labels.
Tip
You can handle the parent diagram‘s OnGetAxisValueLabelDrawParameters event to customize individual axis value labels.
GridlinesAllows you to display and customize axis grid lines in the parent diagram.InterlacedApplies interlacing to the parent diagram.Logarithmic | LogarithmicBaseAllow you to enable a logarithmic scale for the numeric axis and adjust the scale’s logarithmic base.NumericScaleOptions | RangeAdjust the numeric value range of the axis.OnCompareValuesAllows you to implement a custom sorting algorithm for series points.ReverseSpecifies if the axis direction is reversed.
To delete an individual secondary axis of arguments, release the corresponding wrapper object (a TdxChartSecondaryAxisXCollectionItem class instance) directly in code (call the Free procedure in Delphi or use the delete keyword in C++Builder).
Important
Do not release a TdxChartSecondaryAxisX object in code. Otherwise, an error can occur.
The TdxChartSecondaryAxisCollectionItem.Axis property references a TdxChartSecondaryAxisX object.
The Chart control’s HitTest.Axis property references the TdxChartSecondaryAxisX class as a TdxChartCustomAxis object if the HitTest.HitCode property returns the TdxChartHitCode and the inspected point is within a secondary axis of arguments.
TObject TPersistent TcxOwnedPersistent TcxOwnedInterfacedPersistent TdxChartVisualElementPersistent TdxChartCustomVisualElement TdxChartCustomAxis TdxChartCustomAxisX TdxChartSecondaryAxisX
See Also