[Chartjs]-Beginner using chart.js: having trouble display state full of data into a column chart using variables

2👍

You set the entire state object as weeklyIncome, so weeklyIncome.Sunday etc. will be undefined.

You want to destructure weeklyIncome out of the state object instead.

const { weeklyIncome } = this.state

Leave a comment