Skip to content

Conversation

ericsoderberghp
Copy link
Contributor

What does this PR do?

Changed DataChart to fix an issue with detail padding.

Where should the reviewer start?

code

What testing has been done on this PR?

Added a "Pad" story

How should this be manually tested?

"Pad" story

Do Jest tests follow these best practices?

no changes to unit tests, not sure how to test detail interaction via jest

What are the relevant issues?

#6197

Screenshots (if appropriate)

Screen Shot 2022-06-27 at 8 15 47 AM

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

@ericsoderberghp ericsoderberghp requested a review from jcfilben June 27, 2022 15:19
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.

Code looks good

Just a clarification question. It looks like this is working well when the chart.thickness is equal to the pad.horizontal value. If we wanted a chart with a 'xlarge' pad but with 'small' thickness for the bars is there a way to achieve this with the detail correctly aligned? Or would this be a separate issue/PR?

@ericsoderberghp
Copy link
Contributor Author

Code looks good

Just a clarification question. It looks like this is working well when the chart.thickness is equal to the pad.horizontal value. If we wanted a chart with a 'xlarge' pad but with 'small' thickness for the bars is there a way to achieve this with the detail correctly aligned? Or would this be a separate issue/PR?

Good idea. I've updated it to handle pad and thickness better.

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 e866d9f into master Jul 20, 2022
@ericsoderberghp ericsoderberghp deleted the fix/datachart-detail-pad branch July 20, 2022 01:03
@ericsoderberghp ericsoderberghp linked an issue Jul 20, 2022 that may be closed by this pull request
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.

Enhancement: Improve layout for bar charts
2 participants