Indicator.CheckedInLegend Property
Gets or sets a value that determines whether a legend check box is checked for a financial indicator.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public bool CheckedInLegend { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true, if a legend check box is checked for the financial indicator; otherwise, false. |
Remarks
Use the CheckedInLegend property to control the visibility of a financial indicator. If the legend check box is checked, the indicator is shown on a diagram, otherwise, the indicator is invisible.
Note
- To control the visibility of a constant line on the diagram, ensure the check box appears on a legend (Legend.MarkerMode is set to ChechBox, CheckBoxAndMarker or MarkerAndCheckBox and the Indicator.CheckableInLegend property is set to true).
- For the Chart Control for ASP.NET and ASP.NET MVC, to save the state of legend check box for indicators on callbacks, set the WebChartControl.SaveStateOnCallbacks (ChartControlSettings.SaveStateOnCallbacks) property to true.
To learn more on legend check boxes, see the corresponding section of the Legends topic.
See Also