Skip to content

chartjs-chart-boxplot v4.4.4 / ViolinControllerDatasetOptions

Interface: ViolinControllerDatasetOptions

Extends

  • ControllerDatasetOptions.Pick<BarControllerDatasetOptions, "barPercentage" | "barThickness" | "categoryPercentage" | "maxBarThickness" | "minBarLength">.IViolinOptions.ScriptableAndArrayOptions<IViolinElementOptions, ScriptableContext<"violin">>.ScriptableAndArrayOptions<CommonHoverOptions, ScriptableContext<"violin">>.AnimationOptions<"violin">

Properties

backgroundColor

backgroundColor: ScriptableAndArray<string, ScriptableContext<"violin">>

Default

ts
see rectangle
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.backgroundColor

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:12


borderColor

borderColor: ScriptableAndArray<string, ScriptableContext<"violin">>

Default

ts
see rectangle
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.borderColor

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:19


borderWidth

borderWidth: ScriptableAndArray<number, ScriptableContext<"violin">>

Default

ts
1
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.borderWidth

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:26


coef?

optional coef: number

from the R doc: this determines how far the plot ‘whiskers’ extend out from the box. If coef is positive, the whiskers extend to the most extreme data point which is no more than coef times the length of the box away from the box. A value of zero causes the whiskers to extend to the data extremes

Default

ts
1.5

Inherited from

IViolinOptions.coef

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/data.ts:123


hitPadding

hitPadding: ScriptableAndArray<number, ScriptableContext<"violin">>

padding that is added around the bounding box when computing a mouse hit

Default

ts
2
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.hitPadding

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:133


itemBackgroundColor

itemBackgroundColor: ScriptableAndArray<string, ScriptableContext<"violin">>

background color for items

Default

ts
see rectangle.backgroundColor
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.itemBackgroundColor

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:102


itemBorderColor

itemBorderColor: ScriptableAndArray<string, ScriptableContext<"violin">>

border color for items

Default

ts
see rectangle.borderColor
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.itemBorderColor

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:110


itemBorderWidth

itemBorderWidth: ScriptableAndArray<number, ScriptableContext<"violin">>

border width for items

Default

ts
0
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.itemBorderWidth

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:118


itemHitRadius

itemHitRadius: ScriptableAndArray<number, ScriptableContext<"violin">>

hit radius for hit test of items

Default

ts
0
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.itemHitRadius

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:125


itemRadius

itemRadius: ScriptableAndArray<number, ScriptableContext<"violin">>

radius used to render items

Default

ts
0 so disabled
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.itemRadius

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:94


itemStyle

itemStyle: ScriptableAndArray<"triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star", ScriptableContext<"violin">>

item style used to render items

Default

ts
circle

Inherited from

ScriptableAndArrayOptions.itemStyle

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:76


maxStats?

optional maxStats: "max" | "q3" | "whiskerMax"

statistic measure that should be used for computing the maximal data limit

Default

ts
'max'

Inherited from

IViolinOptions.maxStats

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/data.ts:114


meanBackgroundColor

meanBackgroundColor: ScriptableAndArray<string, ScriptableContext<"violin">>

background color for mean dot

Default

ts
see rectangle.backgroundColor
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.meanBackgroundColor

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:173


meanBorderColor

meanBorderColor: ScriptableAndArray<string, ScriptableContext<"violin">>

border color for mean dot

Default

ts
see rectangle.borderColor
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.meanBorderColor

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:181


meanBorderWidth

meanBorderWidth: ScriptableAndArray<number, ScriptableContext<"violin">>

border width for mean dot

Default

ts
0
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.meanBorderWidth

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:189


meanRadius

meanRadius: ScriptableAndArray<number, ScriptableContext<"violin">>

radius used to mean dots

Default

ts
3
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.meanRadius

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:165


meanStyle

meanStyle: ScriptableAndArray<"triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star", ScriptableContext<"violin">>

item style used to render mean dot

Default

ts
circle

Inherited from

ScriptableAndArrayOptions.meanStyle

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:147


minStats?

optional minStats: "min" | "q1" | "whiskerMin"

statistic measure that should be used for computing the minimal data limit

Default

ts
'min'

Inherited from

IViolinOptions.minStats

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/data.ts:108


outlierBackgroundColor

outlierBackgroundColor: ScriptableAndArray<string, ScriptableContext<"violin">>

Default

ts
see rectangle.backgroundColor
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.outlierBackgroundColor

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:57


outlierBorderColor

outlierBorderColor: ScriptableAndArray<string, ScriptableContext<"violin">>

Default

ts
see rectangle.borderColor
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.outlierBorderColor

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:64


outlierBorderWidth

outlierBorderWidth: ScriptableAndArray<number, ScriptableContext<"violin">>

Default

ts
1
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.outlierBorderWidth

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:70


outlierHitRadius

outlierHitRadius: ScriptableAndArray<number, ScriptableContext<"violin">>

hit radius for hit test of outliers

Default

ts
4
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.outlierHitRadius

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:141


outlierRadius

outlierRadius: ScriptableAndArray<number, ScriptableContext<"violin">>

radius used to render outliers

Default

ts
2
scriptable
indexable

Inherited from

ScriptableAndArrayOptions.outlierRadius

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:50


outlierStyle

outlierStyle: ScriptableAndArray<"triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star", ScriptableContext<"violin">>

item style used to render outliers

Default

ts
circle

Inherited from

ScriptableAndArrayOptions.outlierStyle

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/elements/base.ts:32


points

points: number

number of points that should be samples of the KDE

Default

ts
100

Inherited from

IViolinOptions.points

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/data.ts:156


quantiles?

optional quantiles: QuantileMethod

the method to compute the quantiles.

7, 'quantiles': the type-7 method as used by R 'quantiles' method. 'hinges' and 'fivenum': the method used by R 'boxplot.stats' method. 'linear': the interpolation method 'linear' as used by 'numpy.percentile' function 'lower': the interpolation method 'lower' as used by 'numpy.percentile' function 'higher': the interpolation method 'higher' as used by 'numpy.percentile' function 'nearest': the interpolation method 'nearest' as used by 'numpy.percentile' function 'midpoint': the interpolation method 'midpoint' as used by 'numpy.percentile' function

Default

ts
7

Inherited from

IViolinOptions.quantiles

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/data.ts:137


whiskersMode?

optional whiskersMode: "exact" | "nearest"

the method to compute the whiskers.

'nearest': with this mode computed whisker values will be replaced with nearest real data points 'exact': with this mode exact computed whisker values will be displayed on chart

Default

ts
'nearest'

Inherited from

IViolinOptions.whiskersMode

Defined in

work/chartjs-chart-boxplot/chartjs-chart-boxplot/src/data.ts:146