()
| 97 | const charts = new Map(); |
| 98 | |
| 99 | function currentRange() { |
| 100 | if (state.preset === 'custom' && state.custom.from && state.custom.to) { |
| 101 | return { from: state.custom.from, to: state.custom.to }; |
| 102 | } |
| 103 | const to = state.anchor; |
| 104 | return { from: addDays(to, -(state.preset - 1)), to }; |
| 105 | } |
| 106 | |
| 107 | // --------------------------------------------------------------------------- |
| 108 | // DOM helpers |
no test coverage detected