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

Label isn't affected by format prop #120

Open
bakoushin opened this issue May 9, 2018 · 1 comment
Open

Label isn't affected by format prop #120

bakoushin opened this issue May 9, 2018 · 1 comment

Comments

@bakoushin
Copy link

bakoushin commented May 9, 2018

Label isn't affected by format prop – function passed to format prop is actually used for formatting tooltip value only, despite docs says it should be used also for label as well.

I expect that the same function from format prop should be used for formatting both tooltip and label as well, according to the docs.

@kadariuk
Copy link

Simply pass format function to labels set values.

labels={{
            0: formatSlider(minSlider),
            100: formatSlider(maxSlider),
          }}

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

No branches or pull requests

2 participants