Comments (17)
Can you provide the component's React code please?
from nivo.
And what's the size of the wrapping div in your browser inspector?
from nivo.
I don't see any data in your settings
from nivo.
Sorry, you're using the sample data, missed that :/
from nivo.
Yeah, sorry my implementation looks like this:
<ResponsivePie
{...settings}
data={testData} // Data from nivo.rocks site.
/>
It's placed inside a grid with this properties:
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
grid-gap: 30px 30px;
and the div itself has a min height of 200px.
from nivo.
@andeersg what's the computed size of the div in whatever browser dev tools you use ?
from nivo.
The wrapper I mean
from nivo.
It has a computed size of width: 600px and height: 200px;
from nivo.
really weird then… quite hard to debug without having the proper code though
from nivo.
I mean something I can try to run
from nivo.
I can try to experiment with some different heights for the wrapper, if that does not work I will try to reproduce it somewhere you can look at it.
Really cool project btw!
from nivo.
Thank you
from nivo.
@andeersg, I think I've found the problem, see https://www.webpackbin.com/bins/-KtLnILuaFhwgfJnIkYC
from nivo.
You cannot use min-height
as responsive components use available space to render, but min-height
relies on content dimension, so…
from nivo.
If you want a fixed size component, you should use Pie
, otherwise, you'll have to set an explicit height on the wrapper
from nivo.
Or perhaps find a way to get an usable height, using 100% height for all parents of the grid, because default align-items
value is stretch
, but need to have a parent with a defined height to be correctly used
from nivo.
I close this issue as it's more a CSS issue in the end.
from nivo.
Related Issues (20)
- c.scaleOrdinal is not a function HOT 4
- Support for React v17 HOT 9
- [Line] Dissociate line color and area color
- Multiple warnings when using Nivo >= 0.85.0 line chart HOT 21
- radar axis customization
- Server error HOT 1
- Test ids for bars in ResponsiveBar HOT 1
- Nivo Calander Axis Color not changing HOT 1
- Sankey Diagram Links don't show with Dark Theme HOT 1
- Expose onHover event handler for single Geometry in nivo/geo HOT 1
- 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
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.