From 948b79b8f50661226aab7f79f8b1efcbf06a287e Mon Sep 17 00:00:00 2001 From: Victor Malai Date: Wed, 10 Feb 2021 16:32:57 +0200 Subject: [PATCH 1/3] feat(legacy-plugin-chart-pivot-table): subject Add sort by metric --- .../src/controlPanel.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/legacy-plugin-chart-pivot-table/src/controlPanel.ts b/plugins/legacy-plugin-chart-pivot-table/src/controlPanel.ts index d60f8d8eee..8395a46384 100644 --- a/plugins/legacy-plugin-chart-pivot-table/src/controlPanel.ts +++ b/plugins/legacy-plugin-chart-pivot-table/src/controlPanel.ts @@ -38,6 +38,18 @@ const config: ControlPanelConfig = { ['groupby'], ['columns'], ['row_limit', null], + ['timeseries_limit_metric'], + [ + { + name: 'order_desc', + config: { + type: 'CheckboxControl', + label: t('Sort Descending'), + default: true, + description: t('Whether to sort descending or ascending'), + }, + }, + ], ], }, { From c899d1cdd7bc7943f7406316d02886bb298d1410 Mon Sep 17 00:00:00 2001 From: Victor Malai Date: Thu, 11 Feb 2021 12:52:08 +0200 Subject: [PATCH 2/3] feat(legacy-plugin-chart-parallel-coordinates): subject Add sort by metric --- .../src/controlPanel.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/legacy-plugin-chart-parallel-coordinates/src/controlPanel.ts b/plugins/legacy-plugin-chart-parallel-coordinates/src/controlPanel.ts index 2227bdfebd..2b24a090fc 100644 --- a/plugins/legacy-plugin-chart-parallel-coordinates/src/controlPanel.ts +++ b/plugins/legacy-plugin-chart-parallel-coordinates/src/controlPanel.ts @@ -31,6 +31,18 @@ const config: ControlPanelConfig = { ['secondary_metric'], ['adhoc_filters'], ['limit', 'row_limit'], + ['timeseries_limit_metric'], + [ + { + name: 'order_desc', + config: { + type: 'CheckboxControl', + label: t('Sort Descending'), + default: true, + description: t('Whether to sort descending or ascending'), + }, + }, + ], ], }, { From 0b30c7f815bc64199127e741e63985bc42f044c3 Mon Sep 17 00:00:00 2001 From: Victor Malai Date: Thu, 11 Feb 2021 14:13:42 +0200 Subject: [PATCH 3/3] feat(legacy-plugin-chart-treemap): subject Add sort by metric --- .../src/controlPanel.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/plugins/legacy-plugin-chart-treemap/src/controlPanel.ts b/plugins/legacy-plugin-chart-treemap/src/controlPanel.ts index 798e7d4717..24487dc238 100644 --- a/plugins/legacy-plugin-chart-treemap/src/controlPanel.ts +++ b/plugins/legacy-plugin-chart-treemap/src/controlPanel.ts @@ -30,7 +30,24 @@ const config: ControlPanelConfig = { { label: t('Query'), expanded: true, - controlSetRows: [['metrics'], ['adhoc_filters'], ['groupby'], ['row_limit']], + controlSetRows: [ + ['metrics'], + ['adhoc_filters'], + ['groupby'], + ['row_limit'], + ['timeseries_limit_metric'], + [ + { + name: 'order_desc', + config: { + type: 'CheckboxControl', + label: t('Sort Descending'), + default: true, + description: t('Whether to sort descending or ascending'), + }, + }, + ], + ], }, { label: t('Chart Options'),