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

Design system/horizontal bar chart #565

Merged
merged 4 commits into from May 25, 2019

Conversation

bradfordjanice
Copy link
Contributor

Updated the HorizontalBarChart story: organized stories, added notes, created knobs for each story.

@jaronheard jaronheard added this to 👋Ready for Review | Prioritized in 2019 Front-End Team May 24, 2019
Copy link
Contributor

@jaronheard jaronheard left a comment

Choose a reason for hiding this comment

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

This looks really great, @bradfordjanice !

My only suggestions were minor.

DATA: "Data",
CUSTOM: "Custom"
};
const getKeyNames = obj => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is reused in BarChart, HorizontalBarChart, and will be used in other stories, extract to shared.js helper file and import rather than duplicating.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will also extract getKeyNames from the BarChart story and import from shared.js. (In a new branch.)

return (
<HorizontalBarChart
data={data}
sortOrder={sortOrder}
Copy link
Contributor

Choose a reason for hiding this comment

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

Technically, sortOrder isn't required, the component will pick a sortOrder by default. We should move it to the custom story.

A follow up issue for this is that the default sort should be changed to sort from highest value to lowest value, rather than the current sorting method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants