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
The LineChart component states that the height of the chart will inherit the height of its parent. When wrapping the LineChart in a div with a defined height, the chart does not adjust height from within the embedded Shopify app.
Expected behavior
LineChart height would inherit height of 500px from parent div.
Actual behavior
LineChart height does not adjust.
Steps to reproduce the problem
Install polaris-viz
Wrap elements in <PolarisProvider> component
Wrap <LineHeight /> element with div that has defined px height
Reduced test case
Can only replicate within shopify embedded app.
The best way to get your bug fixed is to provide a reduced test case. This CodeSandbox template is a great starting point.
Specifications
Polaris-Viz version number: 10.3.1
Browser: Chrome Version 120.0.6099.129
Device: Mac
Operating System: OS 15-inch, M2, 2023
Or run npx envinfo --system --binaries --browsers --npmPackages react,react-dom,@shopify/polaris-viz to provide specifications on your environment including version numbers, browser, device, and operating system.
Paste the results here:
The text was updated successfully, but these errors were encountered:
Bug summary
The
LineChart
component states that the height of the chart will inherit the height of its parent. When wrapping theLineChart
in a div with a defined height, the chart does not adjust height from within the embedded Shopify app.Expected behavior
LineChart
height would inherit height of 500px from parentdiv
.Actual behavior
LineChart
height does not adjust.Steps to reproduce the problem
<PolarisProvider>
component<LineHeight />
element withdiv
that has defined px heightReduced test case
Can only replicate within shopify embedded app.
The best way to get your bug fixed is to provide a reduced test case. This CodeSandbox template is a great starting point.
Specifications
Or run
npx envinfo --system --binaries --browsers --npmPackages react,react-dom,@shopify/polaris-viz
to provide specifications on your environment including version numbers, browser, device, and operating system.Paste the results here:
The text was updated successfully, but these errors were encountered: