Skip to main content
A newer version of this page is available. .

TrendSegmentColorizer.RisingTrendLegendText Property

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

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v19.1.dll

Declaration

public string RisingTrendLegendText { get; set; }

Property Value

Type Description
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.

Trend Segment Colorizer

<dxc:ChartControl>
    <!--...-->
    <dxc:XYDiagram2D>
        <!--...-->
        <dxc:LineSeries2D  DisplayName="Temperature" 
                           DataSource="{Binding}" 
                           ArgumentDataMember="Date" 
                           ValueDataMember="Temperature">
            <dxc:LineSeries2D.SegmentColorizer>
                <dxc:TrendSegmentColorizer RisingTrendColor="Firebrick" 
                                           FallingTrendColor="RoyalBlue"
                                           RisingTrendLegendText = "Temperature Rise"
                                           FallingTrendLegendText = "Temperature Decrease"
                                           ShowInLegend="True"/>
            </dxc:LineSeries2D.SegmentColorizer>
        </dxc:LineSeries2D>
    </dxc:XYDiagram2D>
</dxc:ChartControl>
See Also