Skip to content

Commit 1331611

Browse files
committed
partially responsive view working
1 parent 88da53e commit 1331611

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/app/components/PerfView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const PerfView = ({ width = 200, height = 200, chartData }) => {
132132
}
133133
}, [chartData]);
134134

135-
return <svg viewBox="-250 -250 500 500" className="perfContainer" ref={svgRef} />;
135+
return <div className="d3divContainer"><svg viewBox="-250 -250 500 500" className="perfContainer" ref={svgRef} /></div>;
136136
};
137137

138138
// class PerfView extends React.Component {

src/app/styles/components/d3graph.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,8 @@ div.tooltip {
9898
margin: 0 -14px;
9999
background-color: hsl(152,80%,80%);
100100
border: 2px solid red;
101-
}
101+
}
102+
103+
.d3divContainer {
104+
border: 1px solid blue;
105+
}

0 commit comments

Comments
 (0)