Shopify/polaris-viz

Update the order of our data points

Closed this issue · 1 comments

The primary data point should always come first within a graph, tooltip, and legend. The comparison should be secondary. The time frame for the x-axis should use the time frame that covers both data points.

More in this GitHub issue:
#1409

How it is today:
Image

How it should look like:
Image

envex commented

What's the proposed fix here? Do we want to read the data and sort for the user? The isComparison flag is currently only used for styling purposes.

Previously we render the data in the order it's provided. We don't have a concept of what the order represents.