davidctj / react-plotlyjs-ts Goto Github PK
View Code? Open in Web Editor NEWA react-typescript component for Plotly.JS graphs.
License: MIT License
A react-typescript component for Plotly.JS graphs.
License: MIT License
Hi there -- great project! I just noticed that I'm being required to specify all of the layout props to the PlotlyChart
element. Should the config
and layout` props be Partials?
There's the warning in the console when this component is used
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
npx react-codemod rename-unsafe-lifecycles
in your project source folder.Please update the following components: PlotlyChart
Hi! It seems that current latest version of the package in master (2.2.1 after merging PR #6) isn't published to npm repo as it has only 2-year-old 2.1.0 with "latest" tag on it.
I'm using it in one of my projects and at some point additional plotly event handlers ("plotly_legendclick", etc.) were required. They aren't available in 2.1.0, although were added by PR #4 and current master have them all. Sadly, I was unable to update the package using npm. Making it possible would be very helpful :)
PS. Thanks for the convenient wrapper!
While npm install
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from [email protected]
Versions from package.json
"react-plotlyjs-ts": "^2.2.2",
"react": "^17.0.2",
"plotly.js": "^1.3.21",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.