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

Display '1' but not .001 in x-axis. #10

Open
Awen-hub opened this issue Aug 22, 2022 · 3 comments
Open

Display '1' but not .001 in x-axis. #10

Awen-hub opened this issue Aug 22, 2022 · 3 comments

Comments

@Awen-hub
Copy link

When I set range data as [1,2,3], it shows '.001 .002 .003' on x-axis but I want to display '1 2 3' .Is there any way to do that?
Here is the example

@bumbeishvili
Copy link
Owner

bumbeishvili commented Aug 22, 2022

I think the example is written in a way, that it converts passed data to date

image

Last time I touched this code was 3 years ago, so don't remember many things

@Awen-hub
Copy link
Author

Great. It works after I delete the accessor. Hhh, don't worry and it works smoothly. It is the only range-slider component with Histogram I can find. Thanks a lot.

@bumbeishvili
Copy link
Owner

https://observablehq.com/@bumbeishvili/data-driven-range-sliders

This is an underlaying component, so I imagine it might help you

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