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

Tick config #187

Merged
merged 3 commits into from
Nov 8, 2016
Merged

Tick config #187

merged 3 commits into from
Nov 8, 2016

Conversation

curran
Copy link
Contributor

@curran curran commented Nov 8, 2016

Will close #134 and #133

@curran
Copy link
Contributor Author

curran commented Nov 8, 2016

Before:

image

After:

image

You can now add configuration options "xTickFormat" and "yTickFormat", and these will be interpreted as format specifier strings using d3-format. For examples of this language, see also formatting numbers example. The above examples uses the configuration

"xTickFormat": ".2s"

This means, use 2 significant digits, and use the SI abbreviations.

@curran
Copy link
Contributor Author

curran commented Nov 8, 2016

After configuring the graph to have fewer tick marks:

image

There is now new configuration parameters "xTicks" and "yTicks" that specify the approximate number of ticks to be used. This defers to d3.axis.ticks.

@curran
Copy link
Contributor Author

curran commented Nov 8, 2016

@ronakmshah @t00f This is ready for review.

@t00f
Copy link
Contributor

t00f commented Nov 8, 2016

Looks good to me. Thanks @curran

@ronakmshah
Copy link
Contributor

@curran looks good. Will merge.

@ronakmshah ronakmshah merged commit f582a9e into master Nov 8, 2016
@ronakmshah ronakmshah deleted the tick-config branch July 6, 2017 16:57
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 configuration option for tick format
3 participants