()
| 74 | const charts = new Map(); |
| 75 | |
| 76 | function currentRange() { |
| 77 | if (state.preset === 'custom' && state.custom.from && state.custom.to) { |
| 78 | return { from: state.custom.from, to: state.custom.to }; |
| 79 | } |
| 80 | const to = state.anchor; |
| 81 | return { from: addDays(to, -(state.preset - 1)), to }; |
| 82 | } |
| 83 | |
| 84 | // --------------------------------------------------------------------------- |
| 85 | // DOM helpers |
no test coverage detected