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

React JS wrapper #5

Open
dvcorreia opened this issue Mar 9, 2018 · 4 comments
Open

React JS wrapper #5

dvcorreia opened this issue Mar 9, 2018 · 4 comments

Comments

@dvcorreia
Copy link

Can Chart.smith.js be integrated in to chart.js react wrappers that already exist, like https://github.com/jerairrest/react-chartjs-2 ?

@Oxicode
Copy link

Oxicode commented May 12, 2020

+1

@dvcorreia
Copy link
Author

At the time I got it to work, somehow. I had to down version the react-chartjs-2/chart.js dependency:

  "resolutions": {
    "react-chartjs-2/chart.js": "2.7.2"
  },

You can check it here https://github.com/dvcorreia/pocket-vna/blob/master/client/src/components/Content/Graphs/SmithChart.jsx

@etimberg
Copy link
Member

There's a simple React example in the Docs now https://www.chartjs.org/chartjs-chart-smith/examples

I need to work on updating to the latest Chart.js (v2.9.3) which is likely why you've had to pin react-chartjs-2 to an older version

@etimberg
Copy link
Member

I've published a new version, v0.3.0 that I quickly tested against chart.js 2.9.3. It looked like it worked with no code changes.

https://www.npmjs.com/package/chartjs-chart-smith/v/0.3.0

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

3 participants