Skip to main content
All docs
V26.1
  • TrendSegmentColorizer.RisingTrendColor Property

    Gets or sets the color used to draw the rising value segments.

    Namespace: DevExpress.XtraCharts

    Assembly: DevExpress.XtraCharts.v26.1.dll

    NuGet Package: DevExpress.Charts

    Declaration

    [XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
    public Color RisingTrendColor { get; set; }

    Property Value

    Type Description
    Color

    The color the colorizer uses to draw the rising value segments.

    Example

    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