Skip to content

Commit

Permalink
UTDTEK-2561
Browse files Browse the repository at this point in the history
  • Loading branch information
maxerikh committed May 16, 2024
1 parent 321510f commit 93d9ddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion es/Visualization2.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ var Visualization2 = function Visualization2(_ref) {
var mobileView = window.innerWidth <= 500;
useResize(viz, width, setWidth);
var count = item.subItems.length;
var height = (count + 1) * itemHeight;
// const height = (count + 1) * itemHeight;
var height = count * itemHeight;
var xScale = scaleLinear().domain([0, max(item.subItems, function (d) {
return d.antall_personer;
})]).range([0, width ? width - 20 : width]);
Expand Down
3 changes: 2 additions & 1 deletion lib/Visualization2.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ var Visualization2 = function Visualization2(_ref) {
var mobileView = window.innerWidth <= 500;
(0, _utils.useResize)(viz, width, setWidth);
var count = item.subItems.length;
var height = (count + 1) * itemHeight;
// const height = (count + 1) * itemHeight;
var height = count * itemHeight;
var xScale = (0, _d.scaleLinear)().domain([0, (0, _d.max)(item.subItems, function (d) {
return d.antall_personer;
})]).range([0, width ? width - 20 : width]);
Expand Down

0 comments on commit 93d9ddf

Please sign in to comment.