chartjs-chart-geo / IColorScaleOptions
Interface: IColorScaleOptions
Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/scales/ColorScale.ts:107
Extends
ILegendScaleOptions
Properties
display
display:
boolean
Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/scales/LegendScale.ts:15
whether to render a color legend
Default
trueInherited from
ILegendScaleOptions.display
interpolate
interpolate: (
normalizedValue) =>string|"blues"|"brBG"|"buGn"|"buPu"|"cividis"|"cool"|"cubehelixDefault"|"gnBu"|"greens"|"greys"|"inferno"|"magma"|"orRd"|"oranges"|"pRGn"|"piYG"|"plasma"|"puBu"|"puBuGn"|"puOr"|"puRd"|"purples"|"rainbow"|"rdBu"|"rdGy"|"rdPu"|"rdYlBu"|"rdYlGn"|"reds"|"sinebow"|"spectral"|"turbo"|"viridis"|"warm"|"ylGn"|"ylGnBu"|"ylOrBr"|"ylOrRd"
Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/scales/ColorScale.ts:120
color interpolation method which is either a function converting a normalized value to string or a well defined string of all the interpolation scales from https://github.com/d3/d3-scale-chromatic. e.g. interpolateBlues -> blues
Default
blueslegend
legend:
object
Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/scales/LegendScale.ts:23
align
align:
"left"|"top"|"bottom"|"right"
alignment of the scale, e.g., right means that it is a vertical scale with the ticks on the right side
Default
rightindicatorWidth
indicatorWidth:
number
how many pixels should be used for the color bar
Default
10length
length:
number
length of the legend, i.e., for a horizontal scale the width if a value < 1 is given, is it assume to be a ratio of the corresponding chart area
Default
100margin
margin:
number|ChartArea
margin pixels such that it doesn't stick to the edge of the chart
Default
8position
position:
"left"|"top"|"bottom"|"right"| {x:number;y:number; } |"top-left"|"top-right"|"bottom-right"|"bottom-left"
location of the legend on the chart area
Default
bottom-rightwidth
width:
number
how wide the scale is, i.e., for a horizontal scale the height if a value < 1 is given, is it assume to be a ratio of the corresponding chart area
Default
50Inherited from
ILegendScaleOptions.legend
missing
missing:
string
Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/scales/ColorScale.ts:165
color value to render for missing values
Default
transparentproperty
property:
string
Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/scales/LegendScale.ts:21
the property name that stores the value in the data elements
Default
valueInherited from
ILegendScaleOptions.property
quantize
quantize:
number
Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/scales/ColorScale.ts:171
allows to split the color scale in N quantized equal bins.
Default
0