Skip to content

Commit

Permalink
Add default height to Treemap
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Jul 15, 2022
1 parent a17d811 commit 3031ae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Blocks/Treemap/Treemap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Treemap(props) {

return (
<div className="treemap-chart">
<VisibilitySensor className="connected-chart">
<VisibilitySensor>
<div className="connected-chart-wrapper">
<LoadablePlotly
data={traces}
Expand All @@ -66,7 +66,8 @@ function Treemap(props) {
useResizeHandler: true,
}}
style={{
maxWidth: '100%',
width: '100%',
height: '450px',
margin: 'auto',
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/Blocks/Treemap/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { withBlockData } from '@eeacms/volto-datablocks/hocs';
const TreemapView = (props) => {
const { data = {} } = props;

return <Treemap data={data} />;
return <Treemap data={data} {...props} />;
};

export default withBlockData(TreemapView);

0 comments on commit 3031ae9

Please sign in to comment.