trekhleb / covid-19

📈 Coronavirus (COVID-19) dashboard to show the dynamics of Сoronavirus distribution per country
https://trekhleb.dev/covid-19/
266 stars 71 forks source link

Feat: Chart Type Options | Date Range Filter #30

Closed abshakekumar closed 4 years ago

abshakekumar commented 4 years ago

What:

3uz372

Why:

How:

abshakekumar commented 4 years ago

Feat: Added Start and End Date for Filtering Chart Data

A commit has been made to achieve the following issues.

25 (Feature Request: Add a selectable Date for Start analysis)

6 ([feature-request] Add filter by range)

Date Range looks like this

Screenshot 2020-04-02 at 2 32 59 AM
trekhleb commented 4 years ago

Thanks for the PR, @abshakekumar ! I'm merging it into the date-range-filter branch for now since I want to do some editions and after that I'll merge it into master.

abshakekumar commented 4 years ago

we need to update the formatDateLabel function in data.js as
const options = { year: 'numeric', month: 'short', day: '2-digit' }; Because we need year for proper functioning of Date Range Filter.