Skip to content

Commit

Permalink
Adjust Height and Width to Screen Size
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshil-Jani authored and amadio committed Jun 27, 2022
1 parent d39deda commit 85993b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perf/treemap/treemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ data =>
.sort((a, b) => b.value - a.value)
)
)});
main.variable(observer("width")).define("width", function(){return( 1920) });
main.variable(observer("height")).define("height", function(){return( 1000)});
main.variable(observer("width")).define("width", function(){return( window.innerWidth) });
main.variable(observer("height")).define("height", function(){return( window.innerHeight)});
main.variable(observer("format")).define("format", ["d3"], function(d3){return(
d3.format(".2%")
)});
Expand Down

0 comments on commit 85993b4

Please sign in to comment.