Skip to content

Commit b2b6132

Browse files
authored
Merge pull request #333 from vbakke/fix/scalable-svg
#324 Scalable SVG
2 parents 68951ef + 04dee41 commit b2b6132

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ export class CircularHeatmapComponent implements OnInit {
397397
.enter()
398398
.append('svg')
399399
.attr('width', '60%') // 70% forces the heatmap down
400-
.attr('height', height + margin.top + margin.bottom)
400+
.attr('height', 'auto')
401+
.attr('viewBox', '0 0 1150 1150')
401402
.append('g')
402403
.attr(
403404
'transform',

0 commit comments

Comments
 (0)