| 94 | } |
| 95 | |
| 96 | export 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 | * Should null or undefined values be omitted from drawing |
| 112 | */ |
| 113 | skipNull?: boolean; |
| 114 | |
| 115 | /** |
| 116 | * 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. |
| 117 | * @default 0.9 |
| 118 | */ |
| 119 | barPercentage: number; |
| 120 | /** |
| 121 | * Percent (0-1) of the available width each category should be within the sample width. |
| 122 | * @default 0.8 |
| 123 | */ |
| 124 | categoryPercentage: number; |
| 125 | |
| 126 | /** |
| 127 | * 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. |
| 128 | */ |
| 129 | barThickness: number | 'flex'; |
| 130 | |
| 131 | /** |
| 132 | * Set this to ensure that bars are not sized thicker than this. |
| 133 | */ |
| 134 | maxBarThickness: number; |
| 135 | |
| 136 | /** |
| 137 | * Set this to ensure that bars have a minimum length in pixels. |
| 138 | */ |
| 139 | minBarLength: number; |
| 140 | |
| 141 | /** |
| 142 | * Point style for the legend |
| 143 | * @default 'circle; |
| 144 | */ |
| 145 | pointStyle: PointStyle; |
| 146 | |
| 147 | /** |
| 148 | * Should the bars be grouped on index axis |
| 149 | * @default true |
| 150 | */ |
| 151 | grouped: boolean; |
| 152 | } |
| 153 |
nothing calls this directly
no outgoing calls
no test coverage detected