diff --git a/plugins/legacy-plugin-chart-pivot-table/src/controlPanel.js b/plugins/legacy-plugin-chart-pivot-table/src/controlPanel.js index bb3f7d3a52..003e37189c 100644 --- a/plugins/legacy-plugin-chart-pivot-table/src/controlPanel.js +++ b/plugins/legacy-plugin-chart-pivot-table/src/controlPanel.js @@ -40,6 +40,18 @@ export default { { label: t('Pivot Options'), controlSetRows: [ + [ + { + name: 'fill_missing_with_zero', + config: { + type: 'CheckboxControl', + label: t('Fill missing timestamps with zero'), + renderTrigger: false, + default: false, + description: t('Fill missing values with zero based on time grain'), + }, + }, + ], [ { name: 'pandas_aggfunc', diff --git a/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx b/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx index 79d9f70053..4dd1b37d88 100644 --- a/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx +++ b/plugins/legacy-preset-chart-nvd3/src/NVD3Controls.tsx @@ -341,6 +341,20 @@ export const timeSeriesSection = [ 'of query results', ), controlSetRows: [ + // eslint-disable-next-line react/jsx-key + [

{t('Data imputation')}

], + [ + { + name: 'fill_missing_with_zero', + config: { + type: 'CheckboxControl', + label: t('Fill missing timestamps with zero'), + renderTrigger: false, + default: false, + description: t('Fill missing values with zero based on time grain'), + }, + }, + ], // eslint-disable-next-line react/jsx-key [

{t('Rolling Window')}

], [