Category / Section
How to make the secondary axis visible in chart?
1 min read
To make the secondary axis visible, IsMaxCross property of SecondaryValueAxis class must be set to true. Please refer to the following code snippet that illustrates this:
C#
//Display secondary axis.
chart.SecondaryValueAxis.IsMaxCross = true;
chart.SecondaryCategoryAxis.IsMaxCross = true;
VB
'Display secondary axis.
chart.SecondaryValueAxis.IsMaxCross = True
chart.SecondaryCategoryAxis.IsMaxCross=True