smaller graph, mouse events on fixed

This commit is contained in:
Colin Megill
2018-05-10 01:21:35 -07:00
parent a803601793
commit 136a345e21
2 changed files with 4 additions and 6 deletions
+2 -4
View File
@@ -203,9 +203,7 @@ class Graph extends React.Component {
return (
<div
id="graphWrapper"
style={{
height: 1050 /* move this to globals */
}}
>
<div style={{ position: "fixed", right: 0, top: 0 }}>
<div
@@ -292,7 +290,7 @@ class Graph extends React.Component {
</div>
</div>
<div
style={{ position: "fixed", right: 80, bottom: 50, zIndex: -9999 }}
style={{marginRight: 50, marginTop: 50, zIndex: -9999 }}
>
<div
style={{
+2 -2
View File
@@ -69,8 +69,8 @@ export const maxControlsWidth = 800;
export const graphMargin = { top: 20, right: 10, bottom: 30, left: 40 };
// export const graphWidth = 1440 /* window width */ - 410 /* sidebar */ - (15 + 15) /* left right padding */ /* but responsive */;
// export const graphHeight = 500;
export const graphWidth = 960;
export const graphHeight = 960;
export const graphWidth = 700;
export const graphHeight = 700;
import { scaleLinear } from "./util/scaleLinear";
// d3.scaleLinear().domain([0,1]).range([0 + graphMargin.left, graphWidth - graphMargin.right])