vcl-dxchartxydiagram-cf1ad348.md
A secondary axis of values.
TdxChartSecondaryAxisY = class(
TdxChartCustomAxisY
)
A secondary axis of values allows you to complement the main axis of values (Y-axis) with a different scale. For example, secondary axes can be useful if you need to display multiple measurement units simultaneously.
Note
The TdxChartSecondaryAxisY class implements secondary Y-axis functionality for the Chart control. To maintain a Y-axis collection, the control uses the TdxChartSecondaryAxisYCollectionItem class as a wrapper for a TdxChartSecondaryAxisY object.
The list below outlines key members of the TdxChartSecondaryAxisY class that allow you to configure an axis of values.
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 values 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 values, release the corresponding wrapper object (a TdxChartSecondaryAxisYCollectionItem class instance) directly in code (call the Free procedure in Delphi or use the delete keyword in C++Builder).
Important
Do not release a TdxChartSecondaryAxisY object in code. Otherwise, an error can occur.
The TdxChartSecondaryAxisCollectionItem.Axis property references a TdxChartSecondaryAxisY object.
The Chart control’s HitTest.Axis property references the TdxChartSecondaryAxisY class as a TdxChartCustomAxis object if the HitTest.HitCode property returns the TdxChartHitCode and the inspected point is within a secondary axis of values.
TObject TPersistent TcxOwnedPersistent TcxOwnedInterfacedPersistent TdxChartVisualElementPersistent TdxChartCustomVisualElement TdxChartCustomAxis TdxChartCustomAxisY TdxChartSecondaryAxisY
See Also