IHeatRule
Type interface
A rule that sets a setting of each series element, such as its color or size, by its data item's value: from min at the lowest value to max at the highest.
More info: Heat rules
Sources
IHeatRule is an interface: it describes a shape of data and is not imported on its own.
Properties
customFunctionType
undefined| (target:Sprite, minValue:number, maxValue:number, value:any) =>voidA function that sets the element's settings itself, in place of
min,maxandkey. It is called for each element, also for one with no value.dataFieldType
stringData item field that holds the value, e.g.
"value"or"valueY".keyType
undefined|stringThe setting to set, e.g.
"fill".logarithmicType
undefined|false|trueDefaultfalseSpreads the values between
minandmaxon a logarithmic scale.maxType
anySetting value for the element with the highest value.
maxValueType
undefined|numberHighest value of the range. If not set, the series' highest value is used, which needs
calculateAggregates.minType
anySetting value for the element with the lowest value.
minValueType
undefined|numberLowest value of the range. If not set, the series' lowest value is used, which needs
calculateAggregates.neutralType
anySetting value for elements whose data item has no value.
stopsType
ArraySince 5.21.2Setting values for a scale through more than two, in place of
minandmax: the element with the lowest value gets the first, the one with the highest the last, and the ones between blend through the stops between. Numbers, percents or colors, all of one kind, e.g.[negative, warning, positive]from the interface colors. Values outsideminValueandmaxValueget the first or last stop.targetType
TemplateTemplate of the elements to set, e.g.
series.columns.template.