question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't make tooltip of dcc.RangeSlider() show marks for date slider?

See original GitHub issue

Hello,

I am using the dcc.RangeSlider() to make a slider to select which dates to display in the chart.

Since the RangeSlider() only accepts numbers as inputs, and needed to convert the dates to UNIX timestamps.

I want the slider to be set up with no marks, but with the tooltip to hover display the text date, not the UNIX ts.

Using the marks attribute I can make the date show correctly in the UI, but I want to have no marks and only the tooltip.

With the marks, it looks like this image

But when I just turn the tooltips on it doesn’t display the text version of the date text in the tooltip.

image

When the marks and tooltips are turned on it still only displays the UNIX ts in the tooltip.

image

Is it possible to use a text alias for what to display in the tooltip? The only attributes I can see that could be set up in the documentation are always_visible and placement. I want it to show dates, not the UNIX timestamp. Also is it possible to style the tooltip differently? The grey color doesn’t align with the rest of the colors on the page.

If not it would be great if this can be on the product roadmap. I really want this feature so open to creating my own PR too if you can point me in the right direction : )

Below are my current lib versions

dash==1.13.4
dash-bootstrap-components==0.9.2
dash-core-components==1.10.1
dash-html-components==1.0.3
dash-renderer==1.5.1
dash-table==4.8.1

Let me know thanks a ton for the help.

Cheers, Alex

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
dm1681commented, Mar 25, 2021

Not sure how active this, but I too would appreciate that feature to be implemented. I’m using dcc.RangeSlider as a way of filtering a data set between start and end dates, and I like the aesthetic of the RangeSlider more the DatePickerRange. Is this feature on the table to be implemented at all?

5reactions
kenneth-liaocommented, Jan 7, 2022

This is absolutely needed! Like the other comments mentioned, it’s essential for the user experience when working with dates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RangeSlider | Dash for Python Documentation | Plotly
Users interact with a dcc.RangeSlider by selecting areas on the rail or by dragging handles. The points displayed on a dcc.RangeSlider are called...
Read more >
marks cannot render for ranger slider during callback
I am using dcc.RangeSlider(), the mark label cannot render including callback, not sure why? I did google and found same issue but still...
Read more >
Use a Slider in a Python Data App - Dash Plotly - YouTube
Learn all about the Slider feature and how to connect it to a bar graph in Python with Dash and Plotly.
Read more >
dashCoreComponents.pdf
library(dashCoreComponents) app <- Dash$new() app$layout(. dccDatePickerRange( id = "date-picker-range", start_date = as.Date("1997/5/10"),.
Read more >
Dash User Guide and Documentation
The first interactive app that you'll create combines a Slider with a Graph and filters data using a Pandas DataFrame . The animate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found