Skip to content

Commit

Permalink
Extend chart periods to 3Y, 5Y and 10Y (#2190)
Browse files Browse the repository at this point in the history
Allow further settings 3Y, 5Y, 10Y for dynamic period of chart.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
  • Loading branch information
stefan-hoehn authored Nov 26, 2023
1 parent 3e27463 commit 1c297f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export default () => [
{ value: '2M', label: '2M' },
{ value: '4M', label: '4M' },
{ value: '6M', label: '6M' },
{ value: 'Y', label: 'Y' }
{ value: 'Y', label: 'Y' },
{ value: '3Y', label: '3Y' },
{ value: '5Y', label: '5Y' },
{ value: '10Y', label: '10Y' }
]).v((value, configuration, configDescription, parameters) => {
return !configuration.chartType
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</f7-menu-item>
<f7-menu-item v-else dropdown :text="period">
<f7-menu-dropdown right>
<f7-menu-dropdown-item v-for="p in ['h', '2h', '4h', '12h', 'D', '2D', '3D', 'W', '2W', 'M', '2M', '4M', '6M', 'Y']"
<f7-menu-dropdown-item v-for="p in ['h', '2h', '4h', '12h', 'D', '2D', '3D', 'W', '2W', 'M', '2M', '4M', '6M', 'Y', '3Y', '5Y', '10Y']"
:key="p" @click="setPeriod(p)" href="#" :text="p" />
</f7-menu-dropdown>
</f7-menu-item>
Expand Down

0 comments on commit 1c297f3

Please sign in to comment.