Comments (2)
@lukecharle, the SVG get its height from its parent's height, this is the intended behavior.
nivo doesn't pre-compute some kind of ratio for the chart to then try to find the best fit in the available space, it simply uses the space available.
Although you can establish a ratio in CSS via aspect-ratio
, should work with width: 100%
(if I understood your expectations correctly).
from nivo.
Closing this issue as this is the intended behavior, please feel free to comment if you think of another approach for this issue.
from nivo.
Related Issues (20)
- ResizeObserver loop completed with undelivered notifications HOT 3
- Customizing Area Bump Chart Colors Based on Ending Date in Data Series HOT 1
- Add new word cloud component HOT 1
- 0.85.1 of @nivo/bar breaks tooltips that use position: fixed style HOT 4
- [Boxplot] Horizontal -> Vertical mode transition does not work
- Add support for hierarchy/dendrograms. HOT 1
- Add Icons as Labels HOT 1
- BarChart setting enableTotals not working HOT 6
- X gridlines extend past the bottom of the chart into tick labels HOT 3
- Infinite renders with custom legend HOT 3
- Additional Color Scale Options in Nivo Choropleth
- Bar Component: TypeError: Axes is not a function - When using ES module (@nivo/bar/dist/nivo-bar.es.js) HOT 2
- [@nivo/bar v.0.86.0] React warning about unique key prop when using bar totals
- [Bar] Option to decide label position HOT 2
- The prop `defs` is marked as required in `Ge2`, but its value is `undefined HOT 4
- Warning: A props object containing a "key prop is being spread into JSX:
- Error t.useMemo using React 16.14.0 HOT 3
- The size of the SVG does not adapt to the size of the graph HOT 2
- Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' HOT 1
- π©Custom Legend causes infinite re-render! π© HOT 1
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 nivo.