Skip to content

Commit 04dee41

Browse files
authored
Scalable SVG
Ref: #324 Page layout still needs fixing. But this fixes the SVG.
1 parent ffccf07 commit 04dee41

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/component/circular-heatmap/circular-heatmap.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ export class CircularHeatmapComponent implements OnInit {
390390
.enter()
391391
.append('svg')
392392
.attr('width', '60%') // 70% forces the heatmap down
393-
.attr('height', height + margin.top + margin.bottom)
393+
.attr('height', 'auto')
394+
.attr('viewBox', '0 0 1150 1150')
394395
.append('g')
395396
.attr(
396397
'transform',

0 commit comments

Comments
 (0)