Skip to content

Commit aee979d

Browse files
authored
Types: fix bubble chart options (#8625)
1 parent 49b902a commit aee979d

File tree

3 files changed

+24
-27
lines changed

3 files changed

+24
-27
lines changed

test/types/simple.ts

-25
This file was deleted.

types/index.esm.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3184,7 +3184,7 @@ export interface ChartTypeRegistry {
31843184
scales: keyof CartesianScaleTypeRegistry;
31853185
};
31863186
bubble: {
3187-
chartOptions: EmptyObject;
3187+
chartOptions: unknown;
31883188
datasetOptions: BubbleControllerDatasetOptions;
31893189
defaultDataPoint: BubbleDataPoint;
31903190
parsedDataType: BubbleParsedData;
@@ -3268,7 +3268,7 @@ export interface ChartData<
32683268
TData = DefaultDataPoint<TType>,
32693269
TLabel = unknown
32703270
> {
3271-
labels: TLabel[];
3271+
labels?: TLabel[];
32723272
datasets: ChartDataset<TType, TData>[];
32733273
}
32743274

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Chart, ChartOptions } from '../../index.esm';
2+
3+
const chart = new Chart('test', {
4+
type: 'bubble',
5+
data: {
6+
datasets: []
7+
},
8+
options: {
9+
scales: {
10+
x: {
11+
min: 0,
12+
max: 30,
13+
ticks: {}
14+
},
15+
y: {
16+
min: 0,
17+
max: 30,
18+
ticks: {},
19+
},
20+
}
21+
}
22+
});

0 commit comments

Comments
 (0)