TrendSegmentColorizer.FallingTrendLegendText Property
Gets or sets the text the legend uses to identify the falling trend segments.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
[XtraSerializableProperty]
public string FallingTrendLegendText { get; set; }
Property Value
Type | Description |
---|---|
String | The text the legend shows for the falling trend colorizer legend item. |
Example
This example demonstrates how to use the TrendSegmentColorizer to color a line series by its segments.
Create a TrendSegmentColorizer and assign it to the LineSeriesView.SegmentColorizer property.
Specify the TrendSegmentColorizer.RisingTrendColor and TrendSegmentColorizer.FallingTrendColor properties to define colors that are used to draw rising and falling trend segments.
Define the TrendSegmentColorizer.RisingTrendLegendText and
TrendSegmentColorizer.FallingTrendLegendText
properties to specify text the legend uses to identify rising and falling trends.
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;