Skip to content

Commit

Permalink
remove debug code ~~~
Browse files Browse the repository at this point in the history
  • Loading branch information
nanli-emory committed Nov 17, 2020
1 parent 5e61f23 commit 3aa2056
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion source/component/Layout/VisGridView/VisGridView.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ class VisGridView extends Component {
}
render() {
if (this.state.config.layout.length > 0) {
console.log('view',this.props)
let __vis = this.state.config.layout.map((item, index) => (

<div key={item.i}>
Expand Down
14 changes: 1 addition & 13 deletions source/component/VisualTools/Chart/KMCurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ export default class KMCurve extends Component {
}else{
this.state.data = this.transform(this.props.data, this.props.fields);
}


console.log(this.state.data)
console.log(this.maxTime)
// this.state.data = {
// l1:generateData(),
// l2:generateData()
// }
// console.log("KM Data",this.state.data);
// //this.state.horizontal = true;
}
transform(data,field){
const event_value = field.eventValue;
Expand Down Expand Up @@ -88,7 +78,6 @@ export default class KMCurve extends Component {
}
shouldComponentUpdate ( nextProps, nextState ) {
// TODO LIST
console.log('KMCurve shouldComponentUpdate')
//console.log(nextProps.filters, this.props.filters)
// const flag = isEquivalent(nextProps.filters, this.props.filters);
// console.log(flag)
Expand Down Expand Up @@ -138,10 +127,9 @@ export default class KMCurve extends Component {
}

componentDidUpdate() {
console.log('componentDidUpdate')

}
componentDidMount() {
console.log('KM Curve')
const rect = this.self.current.getBoundingClientRect();
const innerWidth = rect.width - this.state.margin.left - this.state.margin.right;
const innerHeight = rect.height - this.state.margin.top - this.state.margin.bottom;
Expand Down
4 changes: 2 additions & 2 deletions source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class App extends React.Component {
componentDidMount() {
if (_CONFIG_.DATA_FORMAT === 'csv') {
d3.csv(_CONFIG_.DATA_RESOURCE_URL,d=>covertRaw(d)).then(data=>{
console.log('data',data)
console.log('csv')
this.setState({
isLoaded: true,
data: data
Expand All @@ -172,6 +172,7 @@ class App extends React.Component {
fetch(_CONFIG_.DATA_RESOURCE_URL, {
mode: 'cors'
}).then(res => res.json()).then(data => {
console.log('json')
// TODO need a replace method to replace null, undefined etc.
data.forEach(d => {// clear up null value
if (d.disease_type == null) d.disease_type = 'NA'
Expand All @@ -182,7 +183,6 @@ class App extends React.Component {
return data;
})
.then((data) => {
console.log(data)
this.setState({
isLoaded: true,
data: data
Expand Down

0 comments on commit 3aa2056

Please sign in to comment.