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.

Enhance visual indication of a selected date range

See original GitHub issue

I would love to see a visual indication of selected dates that fall in the middle of a date range selection. While useful in small date ranges, this is especially useful for ranges that fall across multiple months where there is no indication at all that a date is within a range. Perhaps something similar to the DateRangePicker component.

I think it would be relatively simple with the addition of a css class to all values falling within the range and unique classes for the ends of the range. I say unique classes so that one could style the end start and end dates differently such as in the example image below where the start date has a left border radius and the end date has a right border radius.

Possible implementation:

Here i’ve added the classes startRange, inRange, and endRange.

...
<span class="flatpickr-day" tabindex="0">18</span>
<span class="flatpickr-day" tabindex="0">19</span>
<span class="flatpickr-day selected startRange" tabindex="0">20</span>
<span class="flatpickr-day inRange" tabindex="0">21</span>
<span class="flatpickr-day inRange" tabindex="0">22</span>
<span class="flatpickr-day inRange" tabindex="0">23</span>
<span class="flatpickr-day inRange" tabindex="0">24</span>
<span class="flatpickr-day selected endRange" tabindex="0">25</span>
<span class="flatpickr-day" tabindex="0">26</span>
<span class="flatpickr-day" tabindex="0">27</span>

...

Example screenshot from the DateRangePicker: screen shot 2016-10-02 at 19 10 31

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chmlncommented, Oct 3, 2016

Exactly what I was planning. Will be implemented by next release

0reactions
tiagogmcommented, Oct 7, 2016

@davidklebanoff Doh! You’re right, found it. Cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic Visuals Using Date Range Slicers in Power BI Pt. 1
Goal: Create visuals which dynamically change depending on the relative date range selected in a slicer. This is one of the first Power...
Read more >
Custom Date Period Selections in Power BI - YouTube
In this Power BI tutorial, you'll learn how to build a date period selection slicer! The cool part of this trick is you...
Read more >
Show Days Before Or After A Selected Date - YouTube
Show Days Before Or After A Selected Date - Advanced Power BI Visual Techniques ; 1:30 - sample report ; 3:16 - checking...
Read more >
Create CUSTOM DATE RANGE FILTER for a better USER ...
Get Demo Files herehttps://ko-fi.com/s/d87bb04cf7In this video were going to go through how you can create a custom date range filters ...
Read more >
Date range control - Looker Studio Help - Google Support
The date range control lets you select the dates you want to see in the report. You can define a custom date range...
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