Back to Devexpress

TrendSegmentColorizer.RisingTrendLegendText Property

corelibraries-devexpress-dot-xtracharts-dot-trendsegmentcolorizer-0687d3cc.md

latest3.4 KB
Original Source

TrendSegmentColorizer.RisingTrendLegendText Property

Gets or sets the text the legend uses to identify the rising trend segments.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public string RisingTrendLegendText { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property RisingTrendLegendText As String

Property Value

TypeDescription
String

The text the legend shows for the rising trend colorizer legend item.

|

Example

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

csharp
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;
vb
Dim colorizer As TrendSegmentColorizer = New TrendSegmentColorizer
colorizer.FallingTrendColor = Color.RoyalBlue
colorizer.RisingTrendColor = Color.Firebrick
colorizer.FallingTrendLegendText = "Temperature Decrease"
colorizer.RisingTrendLegendText = "Temperature Rise"
colorizer.ShowInLegend = true
Dim lineSeriesView As LineSeriesView = CType(chartControl.Series(0).View,LineSeriesView)
lineSeriesView.SegmentColorizer = colorizer

See Also

TrendSegmentColorizer Class

TrendSegmentColorizer Members

DevExpress.XtraCharts Namespace