esbullington / react-d3

Modular React charts made with d3.js
https://reactiva.github.io/react-d3-website/
MIT License
1.75k stars 179 forks source link

We need to share yDomain between adjacent AreaCharts #302

Closed L5eoneill closed 8 years ago

L5eoneill commented 8 years ago

This can be set in vanilla-d3, but our component can't seem to override react-d3 on this issue.

yang-wei commented 8 years ago

can you show us some code to elaborate your problem.

L5eoneill commented 8 years ago

Hey, apologies for targeting the wrong react-d3 (again!). There are apparently too many versions out there, and I didn't read the import fully.

If someone else is wondering: yScale={d3.scale.linear().range(height, 0).domain([0, max])} should work.