Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement design changes to LineChartRelational #1643

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

envex
Copy link
Collaborator

@envex envex commented Mar 20, 2024

What does this implement/fix?

Implementing design changes to LineChartRelational.

  • Remove percentile lines from the chart.
  • Group percentile area in <Legend /> to render a single item.
  • Added styleOverride.tooltip property to render different shapes in renderLinearTooltipContent().

Resolves https://github.com/Shopify/core-issues/issues/68245, https://github.com/Shopify/core-issues/issues/68244 & https://github.com/Shopify/core-issues/issues/68246

Note

We are not implementing the centered <Legend /> changes in this PR.

What do the changes look like?

image

Storybook link

https://6062ad4a2d14cd0021539c1b-zeeikswiqb.chromatic.com/?path=/story/polaris-viz-charts-linechartrelational--default

Before merging

  • Check your changes on a variety of browsers and devices.

  • Update the Changelog's Unreleased section with your changes.

  • Update relevant documentation, tests, and Storybook.

  • Make sure you're exporting any new shared Components, Types and Utilities from the top level index file of the package

Copy link

github-actions bot commented Mar 20, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
polaris-viz-core-cjs 61.36 KB (0%) 1.3 s (0%) 1.3 s (+64.89% 🔺) 2.6 s
polaris-viz-cjs 215.79 KB (+0.13% 🔺) 4.4 s (+0.13% 🔺) 1.9 s (-5.9% 🔽) 6.2 s
polaris-viz-esm 176.2 KB (+0.16% 🔺) 3.6 s (+0.16% 🔺) 1.8 s (+18.02% 🔺) 5.3 s
polaris-viz-css 4.78 KB (+0.07% 🔺) 96 ms (+0.07% 🔺) 425 ms (+34.16% 🔺) 521 ms
polaris-viz-esnext 182.12 KB (+0.17% 🔺) 3.7 s (+0.17% 🔺) 1.4 s (+3.36% 🔺) 5.1 s

@envex envex force-pushed the envex/line-chart-relational-changes branch from 82d1eac to 2712166 Compare March 20, 2024 17:45
@envex envex merged commit e199ebf into main Mar 25, 2024
6 checks passed
@envex envex deleted the envex/line-chart-relational-changes branch September 12, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants