Closed clairedeboer closed 1 month ago
This is a shot in the dark, but I think the charts aren't lining up because Session
, AOV
and Total sales
have comparison data that is likely making the yAxis values larger.
So what's happening is the 0
value with no comparison data is rendering the 0
line half way up the container instead of along the bottom.
Bug summary
The charts with 0 data have a line height and extra gradient that is not consistent with the charts that have data.
I think this needs to be fixed is Polaris Viz. We investigated the issue and it is happening in Polaris Viz as well as in web leading me to think that it needs to be fixed in Polaris Viz. https://shopify.slack.com/archives/CNB58FZ34/p1679407433716979
Expected behavior
Charts with 0 data should be consistent with charts that do have data.
Actual behavior
The chart for Online store conversion rate has 0 data but the line doesn't align with the Average order value chart which starts at 0 and the gradient is different.
Steps to reproduce the problem
Reduced test case
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: