API Reference
Class
VisualDivergingRamp
A diverging colour ramp for values around a meaningful midpoint: a negative arm, a neutral midpoint colour, and a positive arm. Each arm runs from the weakest to the strongest magnitude.
Inheritance
- Object
- VisualDivergingRamp
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property VisualDesignTokens.DivergingRamp
- Property VisualThemeColors.DivergingRamp
Constructors
public VisualDivergingRamp(IEnumerable<ChartColor> negative, ChartColor neutral, IEnumerable<ChartColor> positive) #Initializes a diverging ramp.
Parameters
- negative System.Collections.Generic.IEnumerable<ChartForgeX.Primitives.ChartColor>
- The negative arm, weakest to strongest; at least one colour.
- neutral ChartForgeX.Primitives.ChartColor
- The midpoint colour.
- positive System.Collections.Generic.IEnumerable<ChartForgeX.Primitives.ChartColor>
- The positive arm, weakest to strongest; at least one colour.
Methods
public ChartColorScale ToColorScale(Double? midpointValue = null) #Returns:
ChartColorScaleCreates a numeric color scale with every step of the ramp: the negative arm from its strongest colour at the minimum to its weakest next to the midpoint, the neutral midpoint, and the positive arm from its weakest to its strongest colour at the maximum.
Parameters
- midpointValue System.Double? = null
- The value drawn in the neutral colour; null uses the middle of the data range.
Returns
A diverging numeric color scale.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?