Class ColorWeightsInfo
Global info pertaining to the full bound list.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Chart
Assembly: Syncfusion.Chart.Wpf.dll
Syntax
public class ColorWeightsInfo
Constructors
ColorWeightsInfo()
Initializes a new instance of the ColorWeightsInfo class.
Declaration
public ColorWeightsInfo()
Properties
HighestValue
Gets or sets the highest value in the bound list.
Declaration
public double HighestValue { get; set; }
Property Value
Type |
---|
System.Double |
LowestValue
Gets or sets the lowest value in the bound list.
Declaration
public double LowestValue { get; set; }
Property Value
Type |
---|
System.Double |
Methods
ClearLowAndHigh()
Clears the LowestValue setting and the HighestValue setting. These will be recalculated the next time the HeatMapItem's layout is updated.
Declaration
protected void ClearLowAndHigh()
See Also
GetColorFromValue(Double, Color, Color, Color, Int32)
Provides the color for a weight value based on the low, median and high colors.
Declaration
public Color GetColorFromValue(double value, Color lowColor, Color medianColor, Color highColor, int median)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The weight value that is between a low and high range. |
System.Windows.Media.Color | lowColor | The color for the lowest value in the range. |
System.Windows.Media.Color | medianColor | The color for the median value in the range. |
System.Windows.Media.Color | highColor | The color for the high value in the range. |
System.Int32 | median | The median percentage (a value between 0 and 100). |
Returns
Type | Description |
---|---|
System.Windows.Media.Color | The color value |
GetGradientFromValue(Double, Brush, Brush, Brush, Int32)
Return brush value from the given double value
Declaration
public Brush GetGradientFromValue(double value, Brush lowColor, Brush medianColor, Brush highColor, int median)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | |
System.Windows.Media.Brush | lowColor | |
System.Windows.Media.Brush | medianColor | |
System.Windows.Media.Brush | highColor | |
System.Int32 | median |
Returns
Type |
---|
System.Windows.Media.Brush |
GetWeightValueForPercentile(Int32)
Returns a value between the LowestValue and HighestValue based on the percentile specified.
Declaration
public double GetWeightValueForPercentile(int percentile)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | percentile | A value between 0 and 100. |
Returns
Type | Description |
---|---|
System.Double | A value between LowestValue and HighestValue. |