theopak / drought.io Goto Github PK
View Code? Open in Web Editor NEWInteractive visualization of drought's effects on the US.
Home Page: http://www.drought.io
License: MIT License
Interactive visualization of drought's effects on the US.
Home Page: http://www.drought.io
License: MIT License
main.html:
droughtMap.js has been added to app/scripts/directives. It depends on d3Service and topoJsonService. Something is going wrong with the services being utilized...
Are we still including agricultural data in the chart?
\cc @agulen
Currently the directives/droughtMap.js
file is a mess because it combines the use of a factory, the global scope, and pure luck in order to draw the map. One result is that the map never appends layers in the right order because the largest file is the layer that we want on the bottom (and yet the largest file takes the longest to load and therefore appends last). This is generally a bad idea.
Here's a good explanation of Angular's $q.all()
function which reduces a number of promises into one which is resolved only then all the promises are resolved: http://stackoverflow.com/questions/21024411/angular-q-how-to-chain-multiple-promises-within-and-after-a-for-loop
The droughtMap
directive requires operations to happen in this order:
I don't think we've collected any meaningful user feedback from the class, so it's essential that we collect external feedback. @agulen what do you think? A few simple steps:
The things we want to measure:
It's pretty cool of the NOAA to provide access to official government data through their Web Services REST API, however, it's not appropriate for on-demand use because it's slow and unreliable.
Sets that returned 200 OK
with a year's worth of precipitation data for a single location had response times from 63 ms to 1.5 minutes, although during development I've noticed that the same requests often return 502 Bad Gateway
. I'm not sure if this lack of speed and reliability are happening on the API's side.
The data that we're fetching represents historical weather. When we need to load this we should probably grab a local copy instead of using the API.
I think this would be an appropriate solution:
-Titles
-Legends
-Units
-Scales
-Small descriptions
We need a script that outputs a topojson file with the following characteristics. Ideally, the script will run as a service (or at least a cron job) on the server.
locationid
types (e.g. states, continues, or ZIP codes).albersUsa()
projectionHere are some helpful links:
[https://github.com/ngyewch/angular-rickshaw](angular-rickshaw)
0.5.0 (the latest stable version) requires Angular 1.2.3, but our app uses Angular 1.3.x (the latest version, one difference is that it doesn't support IE 8). This conflict prevents our app from building on the test and production environments.
We have a few options in fixing this:
angular-rickshaw
to work with Angular 1.3.0.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.