chartjs-chart-geo v4.3.4 / ChoroplethController
Class: ChoroplethController
Extends
GeoController
<"choropleth"
,GeoFeature
>
Constructors
new ChoroplethController()
new ChoroplethController(
chart
,datasetIndex
):ChoroplethController
Parameters
• chart: Chart
<keyof ChartTypeRegistry
, (null
| number
| [number
, number
] | Point
| BubbleDataPoint
| IChoroplethDataPoint
| IBubbleMapDataPoint
)[], unknown
>
• datasetIndex: number
Returns
Inherited from
Defined in
.yarn/berry/cache/chart.js-npm-4.4.6-179caaa878-10c0.zip/node_modules/chart.js/dist/types/index.d.ts:588
Properties
id
readonly
static
id:"choropleth"
='choropleth'
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:92
Methods
_getOtherScale()
_getOtherScale(
scale
):Scale
<CoreScaleOptions
>
Parameters
• scale: Scale
<CoreScaleOptions
>
Returns
Scale
<CoreScaleOptions
>
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:44
clipMap()
clipMap():
boolean
|"outline"
|"graticule"
|"outline+graticule"
|"items"
Returns
boolean
| "outline"
| "graticule"
| "outline+graticule"
| "items"
Inherited from
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:87
draw()
draw():
void
Returns
void
Inherited from
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:177
getGeoDataset()
getGeoDataset():
ChartDataset
<"choropleth"
|"bubbleMap"
> &IGeoControllerDatasetOptions
Returns
ChartDataset
<"choropleth"
| "bubbleMap"
> & IGeoControllerDatasetOptions
Inherited from
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:58
getGeoOptions()
getGeoOptions():
IGeoChartOptions
Returns
Inherited from
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:62
getGraticule()
getGraticule():
boolean
|object
Returns
boolean
| object
Inherited from
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:91
getProjectionScale()
getProjectionScale():
ProjectionScale
Returns
Inherited from
GeoController
.getProjectionScale
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:66
indexToColor()
indexToColor(
index
):string
Parameters
• index: number
Returns
string
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:87
initialize()
initialize():
void
Returns
void
Overrides
GeoController.initialize
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:22
linkScales()
linkScales():
void
Returns
void
Overrides
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:27
parse()
parse(
start
,count
):void
Parameters
• start: number
• count: number
Returns
void
Overrides
GeoController.parse
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:49
resolveOutline()
resolveOutline():
any
Returns
any
Inherited from
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:131
showGraticule()
showGraticule():
void
Returns
void
Inherited from
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:143
showOutline()
showOutline():
boolean
Returns
boolean
Inherited from
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:83
update()
update(
mode
):void
Parameters
• mode: "none"
| "hide"
| "show"
| "default"
| "active"
| "resize"
| "reset"
Returns
void
Inherited from
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:95
updateElements()
updateElements(
elems
,start
,count
,mode
):void
Parameters
• elems: GeoFeature
[]
• start: number
• count: number
• mode: "none"
| "hide"
| "show"
| "default"
| "active"
| "resize"
| "reset"
Returns
void
Overrides
GeoController.updateElements
Defined in
work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:60