Skip to content

Update LineChart.jsx#62

Open
FreemanJournal wants to merge 1 commit intoadrianhajdin:mainfrom
FreemanJournal:patch-1
Open

Update LineChart.jsx#62
FreemanJournal wants to merge 1 commit intoadrianhajdin:mainfrom
FreemanJournal:patch-1

Conversation

@FreemanJournal
Copy link

  1. In the latest "react-chartjs-2": "^4.0.1" and "chart.js": "^3.7.0" ,you have to register element.
  2. Using "unshift" instead of "push" allows you to sort dates in the right order.
  3. Multiplying by 1000 gives you the correct date.

1. In the latest "react-chartjs-2": "^4.0.1" and "chart.js": "^3.7.0" ,you have to register element.
2. Using "unshift" instead of "push" allows you to sort dates in the right order.
3. Multiplying by 1000 gives you the correct date.
Copy link

@doriandevtech doriandevtech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine on my project, thanks @FreemanJournal !

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

Successfully merging this pull request may close these issues.

2 participants