# GC.Spread.Sheets.Charts.ColorRule

## Content

# Enumeration: ColorRule

[Sheets](../modules/GC.Spread.Sheets).[Charts](../modules/GC.Spread.Sheets.Charts).ColorRule

Specifies the color rule of the color style

## Table of contents

### Enumeration members

- [acrossLinear](GC.Spread.Sheets.Charts.ColorRule#acrosslinear)
- [acrossLinearReversed](GC.Spread.Sheets.Charts.ColorRule#acrosslinearreversed)
- [cycle](GC.Spread.Sheets.Charts.ColorRule#cycle)
- [withinLinear](GC.Spread.Sheets.Charts.ColorRule#withinlinear)
- [withinLinearReversed](GC.Spread.Sheets.Charts.ColorRule#withinlinearreversed)

## Enumeration members

### <a id="acrosslinear" name="acrosslinear"></a> acrossLinear

• **acrossLinear** = `2`

Specifies the color picked from the color list is the index modulus the color list length. The color has a brightness that varies from darker to lighter based on how close the index is from 0 and the count of the chart series being colored respectively.

___

### <a id="acrosslinearreversed" name="acrosslinearreversed"></a> acrossLinearReversed

• **acrossLinearReversed** = `4`

Specifies the color picked from the color list is the index modulus the color list length. The color has a brightness that varies from lighter to darker based on how close the index is from 0 and the count of the chart series being colored respectively.

___

### <a id="cycle" name="cycle"></a> cycle

• **cycle** = `0`

Specifies the color picked from the color list is the index modulus the color list length.

___

### <a id="withinlinear" name="withinlinear"></a> withinLinear

• **withinLinear** = `1`

Specifies the color picked from the color list is the first color with a brightness that varies from darker to lighter based on how close the index is from 0 and the count of the chart series being colored respectively.

___

### <a id="withinlinearreversed" name="withinlinearreversed"></a> withinLinearReversed

• **withinLinearReversed** = `3`

Specifies the color picked from the color list is the first color with a brightness that varies from lighter to darker based on how close the index is from 0 and the count of the chart series being colored respectively.
