You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by GitBox <gi...@apache.org> on 2017/12/02 02:01:09 UTC
[GitHub] mistercrunch commented on a change in pull request #3941: New time_pivot visualization
mistercrunch commented on a change in pull request #3941: New time_pivot visualization
URL: https://github.com/apache/incubator-superset/pull/3941#discussion_r154484783
##########
File path: superset/assets/javascripts/explore/stores/controls.jsx
##########
@@ -432,6 +432,29 @@ export const controls = {
'to find in the [country] column'),
},
+ freq: {
+ type: 'SelectControl',
+ label: t('Frequency'),
+ default: 'W-MON',
+ freeForm: true,
+ clearable: false,
+ choices: [
+ ['AS', '[AS] Year'],
+ ['52W-MON', '[52W-MON] 52 Weeks (starting Monday)'],
+ ['W-SUN', '[W-SUN] Week (starting Sunday)'],
+ ['W-MON', '[W-MON] Week (starting Monday)'],
+ ['D', '[D] Day'],
+ ['4W-MON', '[4W-MON] 4 Weeks'],
+ ],
+ description: t(
+ 'The frequency over which to pivot time. Free-form "pandas" offset alias ' +
Review comment:
oh I didn't know ticks did that. neat
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services