You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug for the following section of the main.js, change dataset trigger. The zoom variables aren't always an indication of what is being looked at. i.e. if you click the button to zoom back out of the county/state view, your zoom variable will be set to zoomNational instead of zoomCounty.
if (zoomNational == true) {
var us_data = BigData.state_data[0]["values"][0]
for (var key in us_data) {
if (us_data.hasOwnProperty(key)) {
if (+us_data[key] == NaN || +us_data[key] == 0){
us_data[key = us_data[key]]
}else {
us_data[key] = +us_data[key]
}
}
}
updateTable(us_data,type)
} else if (zoomCounty == true) {
console.log('here')
updateTable(d3.select("g.counties").selectAll("path.selected").datum(),type)
} else if (zoomState == true) {
updateTable(d3.select("path#" + selectedState.properties.abbr).datum(),type)
}
Solution to this would be to look for what is selected. Following psuedo code:
if a county is selected
-> updateTable(countyID,type)
else if state is selected
-> updateTable(stateID,type)
else
-> updateTable(national,type)
Alternatively, an easier solution would be to remove the "zoom out" button at bottom right.
The text was updated successfully, but these errors were encountered:
There is a bug for the following section of the main.js, change dataset trigger. The
zoom
variables aren't always an indication of what is being looked at. i.e. if you click the button to zoom back out of the county/state view, yourzoom
variable will be set tozoomNational
instead ofzoomCounty
.Solution to this would be to look for what is selected. Following psuedo code:
Alternatively, an easier solution would be to remove the "zoom out" button at bottom right.
The text was updated successfully, but these errors were encountered: