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

Enable formatting line graph y ticks with binary prefix #14059

Merged
merged 1 commit into from
Jun 5, 2019

Conversation

chnn
Copy link
Contributor

@chnn chnn commented Jun 4, 2019

Closes #14051

bytes

When formatting ticks with a binary unit prefix, the generated tick intervals aren't super nice. I've created influxdata/giraffe#79 and influxdata/giraffe#80 to track this issue.

@chnn chnn force-pushed the add-y-prefix-formatting branch 2 times, most recently from f596d42 to 1e69776 Compare June 4, 2019 22:11
Copy link
Contributor

@alexpaxton alexpaxton 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 great! From a UX perspective it wasn't immediately clear what SI means. I left a note about the title text on that. Otherwise looks good to me

</Radio.Button>
<Radio.Button
id="y-values-format-tab--kmb"
value={BASE_10}
active={base === BASE_10}
titleText="Thousand / Million / Billion"
titleText="Format values using a SI unit prefix"
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think of spelling out the full name of SI in the titleText?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point! I updated it.

@chnn chnn force-pushed the add-y-prefix-formatting branch from 1e69776 to cb131f9 Compare June 5, 2019 00:26
@chnn chnn merged commit f2d198c into master Jun 5, 2019
@chnn chnn deleted the add-y-prefix-formatting branch June 5, 2019 00:37
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.

Add tick formatting presents to line graph options
2 participants