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

Make ContinuousLinearScale display_decimals a parameter #59

Open
lioPixiumDigital opened this issue Mar 29, 2022 · 1 comment
Open

Make ContinuousLinearScale display_decimals a parameter #59

lioPixiumDigital opened this issue Mar 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@lioPixiumDigital
Copy link

It's be awesome to be able to set the number of decimals.

right now I'm using an ugly hack:

      custom_value_scale: Contex.ContinuousLinearScale.new()
        |> Contex.ContinuousLinearScale.domain(0, max_display)
        |> Contex.ContinuousLinearScale.interval_count(10)
        |> Map.merge(%{display_decimals: 0}) # ugly hack
@mindok
Copy link
Owner

mindok commented Jul 18, 2022

So the official way of doing this would be through the :custom_tick_formatter options on each of the appropriate plots, but it would make sense to expose this for a ContinuousLinearScale and something similar for time scales

@mindok mindok added the enhancement New feature or request label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants