chartjs-chart-wordcloud v4.4.4 / 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
{ maxTries: 3, scalingFactor: 1.2}
Defined in
work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/controllers/WordCloudController.ts:243
color
color:
ScriptableAndArray
<string
|CanvasGradient
|CanvasPattern
,ScriptableContext
<"wordCloud"
>>
Inherited from
ScriptableAndArrayOptions.color
Defined in
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
false
Defined in
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
0
Inherited from
ScriptableAndArrayOptions.maxRotation
Defined in
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
-90
Inherited from
ScriptableAndArrayOptions.minRotation
Defined in
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
1
Inherited from
ScriptableAndArrayOptions.padding
Defined in
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
the current chart id
Defined in
work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/controllers/WordCloudController.ts:249
rotate
rotate:
ScriptableAndArray
<number
,ScriptableContext
<"wordCloud"
>>
rotation of the word
Default
undefined then it will be randomly derived given the other constraints
Inherited from
ScriptableAndArrayOptions.rotate
Defined in
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
2
Inherited from
ScriptableAndArrayOptions.rotationSteps
Defined in
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
undefined
Inherited from
ScriptableAndArrayOptions.strokeStyle
Defined in
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
undefined
Inherited from
ScriptableAndArrayOptions.strokeWidth
Defined in
work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:15