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

Typescripts error :'lineTension' does not exist in type 'ChartDataset #2

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

Comments

@loobj126
Copy link

loobj126 commented Jun 6, 2021

Hi Sir,

Another Typescripts error found.

this.lineChart = new Chart(this.lineCanvas.nativeElement, {
type: "line",
data: {
labels: labels,
datasets: [
{
data: outStandingAmounts,
label: "Outstanding principal",
fill: false,
lineTension: 0.1,

Problem:

Type '{ data: any[]; label: string; fill: false; lineTension: number; backgroundColor: string; borderColor: string; borderCapStyle: "butt"; borderDash: undefined[]; borderDashOffset: number; borderJoinStyle: "miter"; ... 9 more ...; spanGaps: false; }' is not assignable to type 'ChartDataset<"line", any[]>'.
Object literal may only specify known properties, and 'lineTension' does not exist in type 'ChartDataset<"line", any[]>'.

@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