File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ Chart.register(HierarchicalScale);
126
126
127
127
``` sh
128
128
npm i -g yarn
129
- yarn set version 2.1.0
129
+ yarn set version berry
130
130
cat .yarnrc_patch.yml >> .yarnrc.yml
131
- yarn
131
+ yarn install
132
132
yarn pnpify --sdk vscode
133
133
```
134
134
Original file line number Diff line number Diff line change 92
92
type : 'hierarchical' ,
93
93
94
94
attributes : {
95
- backgroundColor : ( ctx ) => {
95
+ backgroundColor : ( ) => ( ctx ) => {
96
96
const v = ctx . dataset . data [ ctx . dataIndex ] ;
97
97
return scale ( v ) ;
98
98
} ,
Original file line number Diff line number Diff line change @@ -259,3 +259,11 @@ export class HierarchicalScale extends CategoryScale<IHierarchicalScaleOptions>
259
259
export interface HierarchicalScaleType extends Partial < IHierarchicalScaleOptions > {
260
260
type : 'hierarchical' ;
261
261
}
262
+
263
+ declare module 'chart.js' {
264
+ export interface CartesianScaleTypeRegistry {
265
+ hierarchical : {
266
+ options : IHierarchicalScaleOptions ;
267
+ } ;
268
+ }
269
+ }
You can’t perform that action at this time.
0 commit comments