ShowMode : ChartSecondaryShowMode;
ShowMode: Prognoz.Platform.Interop.Chart.ChartSecondaryShowMode;
The ShowMode property determines secondary chart display modes.
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.
Executing the example requires 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 chart type: Secondary bar chart
UiChart1.Chart.Type := ChartType.SecondaryBars;
// Set up primary chart display only
UiChart1.Chart.CircleInfoEx.ShowMode := ChartSecondaryShowMode.OnlyPrimary;
End Sub Button1OnClick;
Clicking the Button1 button displays the primary chart only.
Executing the example requires 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 the Button1 button displays the primary chart only.
See also: