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.

Ideas for date slider displaying years for distant dates, months for recent dates?

See original GitHub issue

We’ve got a particular need for a slider to display both recent dates / months and also years in distant history. This could be accomplished with date functionality shown on the examples page, but specific dates many years ago aren’t useful and bring undesired complexity. We’d also want non linear functionality, as the difference between the last few months is far more important than the difference between a few months 20 years ago, and if things didn’t scale that difference would be too fiddly.

We’re thinking maybe increments of single years until Date().getFullYear() - 1 and then “Jan 2020”, “Feb 2020”, … , “Oct 2021”, “Nov 2021”. Any ideas how we might be able to get noUiSlider to do this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
leongersencommented, Nov 8, 2021

Okay, gotcha. I stopped committing the distributed files upon release as of v15, so they’re no longer in the zip when downloading the source. I have yet to add a nice alternative for npm installs (see #1148).

You can grab these for now: https://refreshless.com/nouislider/dist/nouislider.js?v=1550 https://refreshless.com/nouislider/dist/nouislider.css?v=1550

0reactions
github-actions[bot]commented, May 24, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

55 Social Distancing Date Night Ideas - Indy with Kids
Social distancing? We have 55 fun and flirty ideas for your perfect date. Whether you're quarantined or masked up, we've got the 411...
Read more >
Long Distance Date Ideas: 23 Activities For Tonight! (UPDATED)
Video chat sessions a bit stale? Check out our long distance date ideas & activities that you can try out tonight!
Read more >
20 Long Distance Date Ideas & Activities for Couples (Top Tips)
Beyond phone and video calls, here are fun virtual long distance date ideas to get couples through quarantine or lockdown!
Read more >
27 Long Distance Date Ideas That Will Keep You Going When ...
After six years in an international LDR, here are 27 of my best long distance ... It is currently one of our favorite...
Read more >
40 Long-Distance Date Ideas To Make Your Relationship Strong
To make you feel better and excited, we have compiled some long-distance date ideas, which can make your relationship strong and romantic.
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