Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript error on the "xAXES" and *yAXE #1

Open
loobj126 opened this issue Jun 6, 2021 · 1 comment
Open

typescript error on the "xAXES" and *yAXE #1

loobj126 opened this issue Jun 6, 2021 · 1 comment

Comments

@loobj126
Copy link

loobj126 commented Jun 6, 2021

Hi SIr ,
There were issue typescript error on the "xAXES" and *yAXES" .

scales: {
xAxes: [{
gridLines: {
display: false
},
stacked: true,
}],
yAxes: [{
gridLines: {
display: false
}, ticks: {

Type '{ gridLines: { display: false; }; ticks: { callback: (value: any, index: any, values: any) => string; }; stacked: true; }[]' is not assignable to type '_DeepPartialObject<{ type: "linear"; } & CartesianScaleOptions & { beginAtZero: boolean; suggestedMin?: number; suggestedMax?: number; grace?: string | number; ticks: { format: NumberFormatOptions; maxTicksLimit: number; precision: number; stepSize: number; count: number; }; }> | _DeepPartialObject<...> | _DeepParti...'. Type '{ gridLines: { display: false; }; ticks: { callback: (value: any, index: any, values: any) => string; }; stacked: true; }[]' is not assignable to type '_DeepPartialObject<{ type: "timeseries"; } & CartesianScaleOptions & { bounds: "ticks" | "data"; adapters: { date: unknown; }; time: { parser: string | ((v: unknown) => number); round: false | TimeUnit; ... 5 more ...; minUnit: TimeUnit; }; ticks: { ...; }; }>'. Types of property 'reverse' are incompatible. Type '() => { gridLines: { display: false; }; ticks: { callback: (value: any, index: any, values: any) => string; }; stacked: true; }[]' is not assignable to type 'boolean'.ts(2322) utils.d.ts(13, 30): The expected type comes from property 'yAxes' which is declared here on type '_DeepPartialObject<{ [key: string]:

@loobj126
Copy link
Author

loobj126 commented Jun 8, 2021

Sir , can pls advise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant