You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe/explain the bug
I've added a ResponsiveCalendar component to my Shopify embedded app, I'm having an issue where the <rect> its creating inside the SVG is setting a height bigger than it requires
Expected behavior
I expect the container to only use the space needed to fit the table/legends in.
Screenshots
Desktop (please complete the following information):
OS: mac OS 14.1.2 (23B92)
Browser Firefox 122.0
The text was updated successfully, but these errors were encountered:
@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).
Describe/explain the bug
I've added a
ResponsiveCalendar
component to my Shopify embedded app, I'm having an issue where the<rect>
its creating inside the SVG is setting a height bigger than it requiresExpected behavior
I expect the container to only use the space needed to fit the table/legends in.
Screenshots
![Screenshot 2024-02-06 at 21 33 14](https://private-user-images.githubusercontent.com/115987937/302783062-516baa46-e218-4473-9a6a-0e80ed423409.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIwMjg1NzUsIm5iZiI6MTcyMjAyODI3NSwicGF0aCI6Ii8xMTU5ODc5MzcvMzAyNzgzMDYyLTUxNmJhYTQ2LWUyMTgtNDQ3My05YTZhLTBlODBlZDQyMzQwOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNlQyMTExMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNjc3MzgzZDU1ZjE0NjE5ODM2ZWFiYTYxZTFiMTkyZTBlM2QxNjFiMDQ3NjI0ODJkYzQyOWEyNDRlNjQ0ZTU4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.OdRf60t5DAnlOJ4K1q3nuBiRC9FBS3ricDApWj1Z-cg)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: