Closed bbs2009 closed 6 years ago
It's a bit more complicated than that as our current date dropdown allows for bot fixed dates and relative dates. Expressions like 52 weeks ago
or 4 hours ago
or 2015
currently work. We'd need a slightly more complex control with a radio button (relative or fixed) that shows a datepicker or some form for [input int] [frequency] [ago/from_now] depending...
Perhaps it will be convenient for users. Thank you
We are interested in implementing this feature. @mistercrunch : could we make some proposal about which widget to use? Do you have any advice ?
Awesome @higaxman , it's now possible to build rich controls too. Here are a few thoughts:
00:00:00
) I wouldn't show it, just show what is relevant.seconds
, minutes
, hours
, days
, weeks
, months
, years
), default to days
ago
or from now
, defaults to ago
relative
option for the radiobutton, or if you click any part of the date picker, it chooses the fixed
optionFor an example of a rich control, check out this branch (unmerged) where I'm working on a popover for the metrics
control.
https://github.com/airbnb/superset/compare/metrics...mistercrunch:metrics?expand=1
Thanks! Going to check it.
I am very interested in this feature. Please keep up the good work! I look forward to using a date-picker filter.
After a quick research, I'd go with http://dev.quri.com/react-bootstrap-datetimepicker/
@mistercrunch is it better than https://github.com/airbnb/react-dates ?
@xrmx we need the component to handle time as well, not just date
Hey @higaxman how's your progress coming on this? I'd be happy to help
Controls live here: https://github.com/airbnb/superset/tree/master/superset/assets/javascripts/explore/components/controls
Create 2 instances for since
and until
here:
https://github.com/airbnb/superset/blob/master/superset/assets/javascripts/explore/stores/controls.jsx
Hard coded list here:
https://github.com/airbnb/superset/blob/master/superset/assets/javascripts/explore/components/Control.jsx#L21
you can move this list to an index.jsx
if you think it's better
Hi @mistercrunch, wanted to know if we can use it ? or still in progress ? :)
No one is working on this at the moment as far as I know
So sad :'(
@vschoener don't be sad, that's an opportunity for you to implement it.
Will you add datepicker in next version? Any plans? AFAIK,datepicker is important for most developers and analysis.
This as been done, will be in next release.
Will this be available in the FilterBox date filter as well? For dashboard filters.
Thanks.
Yes it is
Thanks all for Apache superset contribution and s/w.
My question is. Are there any sample dashboard reports available with date filters? My team is especially looking for having ability to switc/refresh the view based on reporting date change.
Thanks all for Apache superset contribution and s/w.
My question is. Are there any sample dashboard reports available with date filters? My team is especially looking for having ability to switc/refresh the view based on reporting date change.
Am interested in this too
I added a Persian Datepicker to my superset that filters all the data inside a dashboard
.
I applied my changes in the following path: superset/superset-frontend/src/visualizations/FilterBox
First I added my filter to the control panel with the following code:
After that I changed the transform Props file:
Finally, I added my filter to the FilterBox as follows:
And here is my filter file:
And Da Dam ...
@bbs2009 @xrmx @higaxman @pariser @vschoener @mistercrunch @KingAnnihilate @felexkemboi @TheScoobyBoy
@Danielmrg - Hello Thank you for good idea I did everything according to your screenshots Tell me please the full path to install node.js and npm in SuperSet? And also the path for jalali-react-datepicker
Make sure these boxes are checked before submitting your issue - thank you!
I greet everyone. Please add a drop-down calendar to the date filter, like![default](https://cloud.githubusercontent.com/assets/11568424/24863090/12996288-1e08-11e7-9b15-2b3c56a6786d.png)
Thank you.