Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions types/index.esm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export interface ParsingOptions {
}

export interface ControllerDatasetOptions extends ParsingOptions {
/**
* The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.
* @default 'x'
*/
indexAxis: 'x' | 'y';
/**
* How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}
*/
Expand All @@ -86,11 +91,6 @@ export interface BarControllerDatasetOptions
extends ControllerDatasetOptions,
ScriptableAndArrayOptions<BarOptions, ScriptableContext>,
ScriptableAndArrayOptions<CommonHoverOptions, ScriptableContext> {
/**
* The base axis of the dataset. 'x' for vertical bars and 'y' for horizontal bars.
* @default 'x'
*/
indexAxis: 'x' | 'y';
/**
* The ID of the x axis to plot this dataset on.
*/
Expand Down Expand Up @@ -1341,6 +1341,12 @@ export interface CoreChartOptions extends ParsingOptions {
animation: Scriptable<AnimationOptions | false, ScriptableContext>;
};

/**
* The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.
* @default 'x'
*/
indexAxis: 'x' | 'y';

/**
* base color
* @see Defaults.color
Expand Down