Skip to content

chartjs-chart-wordcloud v4.4.0 / IWordCloudControllerDatasetOptions

Interface: IWordCloudControllerDatasetOptions

Extends

  • ControllerDatasetOptions.ScriptableAndArrayOptions<IWordElementOptions, ScriptableContext<"wordCloud">>.ScriptableAndArrayOptions<CommonHoverOptions, ScriptableContext<"wordCloud">>.AnimationOptions<"wordCloud">

Properties

autoGrow

autoGrow: IAutoGrowOptions

configures the automatic growing of the canvas in case not all words can be fitted onto the screen

Default

ts
{ maxTries: 3, scalingFactor: 1.2}

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/controllers/WordCloudController.ts:243


color

color: ScriptableAndArray<string | CanvasGradient | CanvasPattern, ScriptableContext<"wordCloud">>

Inherited from

ScriptableAndArrayOptions.color

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:5


fit

fit: boolean

whether to fit the word cloud to the map, by scaling to the actual bounds

Default

ts
false

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/controllers/WordCloudController.ts:237


maxRotation

maxRotation: ScriptableAndArray<number, ScriptableContext<"wordCloud">>

angle in degree for the max rotation

Default

ts
0

Inherited from

ScriptableAndArrayOptions.maxRotation

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:35


minRotation

minRotation: ScriptableAndArray<number, ScriptableContext<"wordCloud">>

angle in degree for the min rotation

Default

ts
-90

Inherited from

ScriptableAndArrayOptions.minRotation

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:30


padding

padding: ScriptableAndArray<number, ScriptableContext<"wordCloud">>

padding around each word while doing the layout

Default

ts
1

Inherited from

ScriptableAndArrayOptions.padding

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:40


randomRotationSeed

randomRotationSeed: string

specifies the random seed that should be used for randomly rotating words if needed

Default

ts
the current chart id

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/controllers/WordCloudController.ts:249


rotate

rotate: ScriptableAndArray<number, ScriptableContext<"wordCloud">>

rotation of the word

Default

ts
undefined then it will be randomly derived given the other constraints

Inherited from

ScriptableAndArrayOptions.rotate

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:20


rotationSteps

rotationSteps: ScriptableAndArray<number, ScriptableContext<"wordCloud">>

number of rotation steps between min and max rotation

Default

ts
2

Inherited from

ScriptableAndArrayOptions.rotationSteps

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:25


strokeStyle

strokeStyle: ScriptableAndArray<string | CanvasGradient | CanvasPattern, ScriptableContext<"wordCloud">>

CanvasContext2D.strokeStyle config for rendering a stroke around the text

Default

ts
undefined

Inherited from

ScriptableAndArrayOptions.strokeStyle

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:10


strokeWidth?

optional strokeWidth: ScriptableAndArray<undefined | number, ScriptableContext<"wordCloud">>

CanvasContext2D.lineWith for stroke

Default

ts
undefined

Inherited from

ScriptableAndArrayOptions.strokeWidth

Source

work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:15