Skip to content

chartjs-chart-geo / ChoroplethController

Class: ChoroplethController

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:21

Extends

Constructors

Constructor

new ChoroplethController(chart, datasetIndex): ChoroplethController

Defined in: .yarn/berry/cache/chart.js-npm-4.5.0-e95c375db8-10c0.zip/node_modules/chart.js/dist/types/index.d.ts:598

Parameters

chart

Chart

datasetIndex

number

Returns

ChoroplethController

Inherited from

GeoController.constructor

Properties

id

readonly static id: "choropleth" = 'choropleth'

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:95

Methods

_getOtherScale()

_getOtherScale(scale): Scale

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:44

Parameters

scale

Scale

Returns

Scale


clipMap()

clipMap(): boolean | "outline" | "graticule" | "outline+graticule" | "items"

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:87

Returns

boolean | "outline" | "graticule" | "outline+graticule" | "items"

Inherited from

GeoController.clipMap


draw()

draw(): void

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:177

Returns

void

Inherited from

GeoController.draw


getGeoDataset()

getGeoDataset(): ChartDataset<"choropleth" | "bubbleMap"> & IGeoControllerDatasetOptions

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:58

Returns

ChartDataset<"choropleth" | "bubbleMap"> & IGeoControllerDatasetOptions

Inherited from

GeoController.getGeoDataset


getGeoOptions()

getGeoOptions(): IGeoChartOptions

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:62

Returns

IGeoChartOptions

Inherited from

GeoController.getGeoOptions


getGraticule()

getGraticule(): boolean | { stepMajor: [number, number]; stepMinor: [number, number]; }

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:91

Returns

boolean | { stepMajor: [number, number]; stepMinor: [number, number]; }

Inherited from

GeoController.getGraticule


getProjectionScale()

getProjectionScale(): ProjectionScale

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:66

Returns

ProjectionScale

Inherited from

GeoController.getProjectionScale


indexToColor()

indexToColor(index): string

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:90

Parameters

index

number

Returns

string


initialize()

initialize(): void

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:22

Returns

void

Overrides

GeoController.initialize


linkScales()

linkScales(): void

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:27

Returns

void

Overrides

GeoController.linkScales


parse()

parse(start, count): void

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:49

Parameters

start

number

count

number

Returns

void

Overrides

GeoController.parse


resolveOutline()

resolveOutline(): any

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:131

Returns

any

Inherited from

GeoController.resolveOutline


showGraticule()

showGraticule(): void

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:143

Returns

void

Inherited from

GeoController.showGraticule


showOutline()

showOutline(): boolean

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:83

Returns

boolean

Inherited from

GeoController.showOutline


update()

update(mode): void

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/GeoController.ts:95

Parameters

mode

"none" | "hide" | "show" | "default" | "active" | "resize" | "reset"

Returns

void

Inherited from

GeoController.update


updateElements()

updateElements(elems, start, count, mode): void

Defined in: work/chartjs-chart-geo/chartjs-chart-geo/src/controllers/ChoroplethController.ts:60

Parameters

elems

GeoFeature[]

start

number

count

number

mode

"none" | "hide" | "show" | "default" | "active" | "resize" | "reset"

Returns

void

Overrides

GeoController.updateElements