Skip to content

Commit 4d64ce8

Browse files
committed
fixed bug
1 parent f0f83a4 commit 4d64ce8

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/component/County.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ class County extends Component {
191191
const {target,highlighto} = this.state;
192192
const {geographies} = this.state;
193193
const {map_width,map_height,projection} = this;
194+
console.log(projection);
194195
return <div className={classes.root}>
195196
<svg width={ map_width } height={ map_height } viewBox={`0 0 ${map_width} ${map_height}`} ref={this.svgRef}>
196197
<g className="content">

src/component/District.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ class District extends Component {
199199
const {target,highlighto} = this.state;
200200
const {geographies} = this.state;
201201
const {map_width,map_height,projection} = this;
202+
console.log(projection);
202203
return <div className={classes.root}>
203204
<svg width={ map_width } height={ map_height } viewBox={`0 0 ${map_width} ${map_height}`} ref={this.svgRef}>
204205
<g className="content">

src/component/EditableTable.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component, useLayoutEffect, useState } from "react";
22
import { withStyles } from "@material-ui/core/styles";
33
import {
44
Box, Button,
5-
Grid,
65
Input,
76
Tab,
87
Table,

src/component/Graph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class Graph extends Component {
146146
}
147147

148148
render() {
149-
const {classes} = this.props;
149+
// const {classes} = this.props;
150150
return ((this.props.rows.length && this.state.dataset) ?
151151
<Grid container alignItems="center" direction={"column"} spacing={1}>
152152
<Grid item xs={11}>
@@ -161,7 +161,7 @@ class Graph extends Component {
161161
y={this.state.height + 40}>Age (months)
162162
</text>
163163
<text className="YAxisText"
164-
transform={"translate(" + (-50) + "," + this.state.height / 2 + ")" + " rotate(-90)"}
164+
transform={`translate(-50, ${this.state.height / 2}) rotate(-90)`}
165165
style={{"textAnchor": "middle", "textShadow": "1px 1px 0 rgba(200, 200, 200, 0.7"}}
166166
fontFamily="sans-serif" fontSize="16px">Number of Punchouts per Mile
167167
</text>

0 commit comments

Comments
 (0)