From a7e4591137d391e89db10227e210a2e068f579ea Mon Sep 17 00:00:00 2001 From: Erik Ritter Date: Wed, 28 Oct 2020 15:50:14 -0700 Subject: [PATCH] feat: update time_compare description and choices (#818) * feat: update time_compare description and choices * Update NVD3Controls.tsx * Update controlPanel.jsx --- .../legacy-plugin-chart-partition/src/controlPanel.jsx | 4 +++- .../plugins/legacy-plugin-chart-rose/src/controlPanel.jsx | 4 +++- .../plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-partition/src/controlPanel.jsx b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-partition/src/controlPanel.jsx index 07742b8057108..b6963a91d7e5a 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-partition/src/controlPanel.jsx +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-partition/src/controlPanel.jsx @@ -287,12 +287,14 @@ export default { '30 days', '52 weeks', '1 year', + '104 weeks', + '2 years', ]), description: t( 'Overlay one or more timeseries from a ' + 'relative time period. Expects relative time deltas ' + 'in natural language (example: 24 hours, 7 days, ' + - '56 weeks, 365 days)', + '52 weeks, 365 days). Free text is supported.', ), }, }, diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-rose/src/controlPanel.jsx b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-rose/src/controlPanel.jsx index 8828d6a4dfa79..305cde0bfd8ac 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-rose/src/controlPanel.jsx +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-rose/src/controlPanel.jsx @@ -186,12 +186,14 @@ export default { '30 days', '52 weeks', '1 year', + '104 weeks', + '2 years', ]), description: t( 'Overlay one or more timeseries from a ' + 'relative time period. Expects relative time deltas ' + 'in natural language (example: 24 hours, 7 days, ' + - '56 weeks, 365 days)', + '52 weeks, 365 days). Free text is supported.', ), }, }, diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx index 17b2667f12392..b0ac88cc3b169 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx @@ -402,12 +402,14 @@ export const timeSeriesSection = [ '30 days', '52 weeks', '1 year', + '104 weeks', + '2 years', ]), description: t( 'Overlay one or more timeseries from a ' + 'relative time period. Expects relative time deltas ' + 'in natural language (example: 24 hours, 7 days, ' + - '56 weeks, 365 days)', + '52 weeks, 365 days). Free text is supported.', ), }, },