TrendSegmentColorizer.ShowInLegend Property

Gets or sets the value that specifies whether the colorizer should provide items for the legend.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll


public bool ShowInLegend { get; set; }
Public Property ShowInLegend As Boolean

Property Value

Type Description

true, if the legend should show the colorizer items; otherwise, false.


This example demonstrates how to use the TrendSegmentColorizer to color a line series by its segments.

TrendSegmentColorizer colorizer = new TrendSegmentColorizer();
colorizer.FallingTrendColor = Color.RoyalBlue;
colorizer.RisingTrendColor = Color.Firebrick;
colorizer.FallingTrendLegendText = "Temperature Decrease";
colorizer.RisingTrendLegendText = "Temperature Rise";
colorizer.ShowInLegend = true;
LineSeriesView lineSeriesView = chartControl.Series[0].View as LineSeriesView;
lineSeriesView.SegmentColorizer = colorizer;


See Also