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

ReductionStockOptions.ColorMode Property

Gets or sets the mode used to colorize the financial series points.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v18.2.dll

Declaration

public ReductionColorMode ColorMode { get; set; }

Property Value

Type Description
ReductionColorMode

The specified color mode.

Available values:

Name Description
PreviousToCurrentPoint

Points are colorized with color specified by the ReductionStockOptions.Brush property if a value of previous point is greater than the value of the current point (the value is decreased). The ReductionStockOptions.Level property specifies the point value that should be compared.

ReductionColorMode_PreviousToCurrentPoint

OpenToCloseValue

Points are colorized with a color defined by the ReductionStockOptions.Brush property if the point open value is greater than the point close value (the price is decreased).

ReductionColorMode_OpenToCloseValue

Property Paths

You can access this nested property as listed below:

Object Type Path to ColorMode
CandleStickSeries2D
.ReductionOptions.ColorMode
FinancialSeries2D
.ReductionOptions.ColorMode
StockSeries2D
.ReductionOptions.ColorMode

Remarks

To specify this property, use the ReductionColorMode enumeration values. The following table lists all the possible values of the ColorMode property.

Value Description Image
ReductionColorMode.OpenToCloseValue Points are colorized with a color defined by the ReductionStockOptions.Brush property if the point open value is greater than the point close value (the price is decreased). ReductionColorMode_OpenToCloseValue
ReductionColorMode.PreviousToCurrentPoint Points are colorized with color specified by the ReductionStockOptions.Brush property if a value of previous point is greater than the value of the current point (the value is decreased). The ReductionStockOptions.Level property specifies the point value that should be compared. ReductionColorMode_PreviousToCurrentPoint

Example

The following example demonstrates how to specify the Candle Stick chart’s fill mode and color mode.

<dxc:CandleStickSeries2D.ReductionOptions>
    <dxc:ReductionStockOptions ColorMode="OpenToCloseValue" 
                               dxc:CandleStickSeries2D.FillMode="FilledOnReduction"/>
</dxc:CandleStickSeries2D.ReductionOptions>

The following code snippets (auto-collected from DevExpress Examples) contain references to the ColorMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also