Skip to content

Commit

Permalink
chore(plugins): Update dropdown control for BigNumber with Time Compa…
Browse files Browse the repository at this point in the history
…rison range (#27090)
  • Loading branch information
Antonio-RiveroMartnez authored Feb 13, 2024
1 parent e4a723d commit a912faf
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,21 @@ const config: ControlPanelConfig = {
config: {
type: 'SelectControl',
label: t('Range for Comparison'),
default: 'y',
default: 'r',
choices: [
['r', 'Inherit range from time filters'],
['y', 'Year'],
['w', 'Week'],
['m', 'Month'],
['r', 'Range'],
['w', 'Week'],
['c', 'Custom'],
],
rerender: ['adhoc_custom'],
description: t(
'Set the time range that will be used for the comparison metrics. ' +
'For example, "Year" will compare to the same dates one year earlier. ' +
'Use "Inherit range from time filters" to shift the comparison time range' +
'by the same length as your time range and use "Custom" to set a custom comparison range.',
),
},
},
],
Expand Down

0 comments on commit a912faf

Please sign in to comment.