MCPcopy Create free account
hub / github.com/chartjs/Chart.js / BarControllerDatasetOptions

Interface BarControllerDatasetOptions

src/types/index.d.ts:96–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96export interface BarControllerDatasetOptions
97 extends ControllerDatasetOptions,
98 ScriptableAndArrayOptions<BarOptions, ScriptableContext<'bar'>>,
99 ScriptableAndArrayOptions<CommonHoverOptions, ScriptableContext<'bar'>>,
100 AnimationOptions<'bar'> {
101 /**
102 * The ID of the x axis to plot this dataset on.
103 */
104 xAxisID: string;
105 /**
106 * The ID of the y axis to plot this dataset on.
107 */
108 yAxisID: string;
109
110 /**
111 * Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.
112 * @default 0.9
113 */
114 barPercentage: number;
115 /**
116 * Percent (0-1) of the available width each category should be within the sample width.
117 * @default 0.8
118 */
119 categoryPercentage: number;
120
121 /**
122 * Manually set width of each bar in pixels. If set to 'flex', it computes "optimal" sample widths that globally arrange bars side by side. If not set (default), bars are equally sized based on the smallest interval.
123 */
124 barThickness: number | 'flex';
125
126 /**
127 * Set this to ensure that bars are not sized thicker than this.
128 */
129 maxBarThickness: number;
130
131 /**
132 * Set this to ensure that bars have a minimum length in pixels.
133 */
134 minBarLength: number;
135
136 /**
137 * Point style for the legend
138 * @default 'circle;
139 */
140 pointStyle: PointStyle;
141
142 /**
143 * Should the bars be grouped on index axis
144 * @default true
145 */
146 grouped: boolean;
147}
148
149export interface BarControllerChartOptions {
150 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected