Skip to content

Conversation

ericsoderberghp
Copy link
Contributor

@ericsoderberghp ericsoderberghp commented Jun 10, 2022

What does this PR do?

Changed DataChart to improve how swatches are rendered for detail and legend.

The key concept is that instead of always drawing a path and filling it, we now draw a line and style the stroke to align better with how the Chart renders.

Where should the reviewer start?

DataChart.js

What testing has been done on this PR?

Check Detail and Legend stories.
Enhanced Legend story to include dash and round.
Verified that unit test snapshots changes are expected.

How should this be manually tested?

Detail and Legend stories

Do Jest tests follow these best practices?

no test changes

What are the relevant issues?

#6119

Screenshots (if appropriate)

Screen Shot 2022-06-09 at 8 51 30 PM

Do the grommet docs need to be updated?

no

Should this PR be mentioned in the release notes?

yes

Is this change backwards compatible or is it a breaking change?

backwards compatible

Copy link
Collaborator

@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ericsoderberghp ericsoderberghp merged commit ff7556a into master Jun 10, 2022
@ericsoderberghp ericsoderberghp deleted the fix/datachart-legend branch June 10, 2022 21:34
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.

DataChart legend size should not be tied to chart series properties
2 participants