ShowMode : ChartSecondaryShowMode;
ShowMode: Prognoz.Platform.Interop.Chart.ChartSecondaryShowMode;
The ShowMode property determines display modes of the secondary chart.
Selecting the OnlyPrimary and OnlySecondary display modes displays the icons of the series currently shown on the chart. The CollapseLegendItems checkbox does not affect how the icons are displayed in the legend.
To execute this example, create a form with a button named Button1 on the form, the ChartBox component and the UiChart component that is a data source.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
// Select the chart type: Secondary bar chart
UiChart1.Chart.Type := ChartType.SecondaryBars;
// Set up the primary chart display only
UiChart1.Chart.CircleInfoEx.ShowMode := ChartSecondaryShowMode.OnlyPrimary;
End Sub Button1OnClick;
Clicking Button1 displays the primary chart only.
To execute this example, create a form with a button named Button1 on the form, the ChartBoxNet component and the UiChartNet component that is a data source.
...
Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Chart;
Private Sub button1_Click( sender: System.Object; e: System.EventArgs );
Begin
UiChartNet1.ChartUi.Chart.Type:= ChartType.chtSecondaryCircles;
UiChartNet1.ChartUi.Chart.CircleInfoEx.ShowMode:= ChartSecondaryShowMode.cssmOnlyPrimary;
End Sub;
Clicking Button1 displays the primary chart only.
See also: