(container: HTMLElement)
| 44 | ); |
| 45 | |
| 46 | const getBarCenters = (container: HTMLElement): number[] => |
| 47 | Array.from(container.querySelectorAll('.plot .bar'), (bar) => { |
| 48 | return ( |
| 49 | Number(bar.getAttribute('x')) + Number(bar.getAttribute('width')) / 2 |
| 50 | ); |
| 51 | }); |
| 52 | |
| 53 | const getBarWidths = (container: HTMLElement): number[] => |
| 54 | Array.from(container.querySelectorAll('.plot .bar'), (bar) => |
no outgoing calls
no test coverage detected
searching dependent graphs…