Comments (2)
if (this.chart && this.chart.container) {
svg = this.chart.container.children[0];
console.log("svg",svg)
}
const pngData = await getPngData(svg);
Now work. I can't set only ref.
And width/height can take from props.
width = this.chart?.props?.width || 900
height = this.chart?.props?.height || 300
from recharts-to-png.
Thanks for the bug report. I added a hook in #7 that should solve this issue. If you want to upgrade to 0.8.0 and try it out, I would appreciate your feedback.
from recharts-to-png.
Related Issues (17)
- Legends are ignored HOT 1
- Performance issues and console debugs HOT 5
- useRechartToPng gives "Error: Invalid hook call" HOT 2
- A Blank image is downloaded on click of download button. HOT 2
- Multiple chart not work HOT 3
- The problem that occurs when the page is scrolled. HOT 1
- Composed Charts HOT 6
- Import Error HOT 4
- How to use Recharts-to-png in class component react HOT 3
- Chart is pixelated. HOT 3
- Solving a problem with multiple charts on a page HOT 2
- Question: how to use when charts are in a loop HOT 3
- Issues with react 17.0.1 and iframes HOT 2
- Feature request: do it in node HOT 2
- Remove recharts dependency HOT 3
- Verify compatibility with recharts-2.X HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recharts-to-png.