| Author | djarvis <email> |
|---|---|
| Date | 2024-12-18 16:03:06 GMT-0800 |
| Commit | c9914cb4802ba0318ad7efd1055610ff57e2d487 |
| Parent | 66e4f35 |
| Delta | 4 lines added, 2 lines removed, 2-line increase |
|---|
| const svg = d3.select(`#${this.id}`).append('svg') | ||
| - .attr('width', width + margin.left + margin.right) | ||
| - .attr('height', height + margin.top + margin.bottom) | ||
| + .attr('viewBox', `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}`) | ||
| + .attr('preserveAspectRatio', 'xMidYMid meet') | ||
| + .style('width', '100%') | ||
| + .style('height', '100%') | ||
| .append('g') | ||
| .attr('transform', `translate(${margin.left},${margin.top})`); |