Merge pull request #96 from aboodman/docs

Various cleanups to heatmap UI and docs.
This commit is contained in:
Aaron Boodman
2015-07-21 12:46:18 -07:00
4 changed files with 4 additions and 4 deletions

View File

@@ -6,10 +6,10 @@ This is the beginnings of a simple tree view of all noms data.
* [`<noms>/clients/server`](../server)
* Node.js: https://nodejs.org/download/
* You probably want to configure npm to [use a global module path that your user owns](https://docs.npmjs.com/getting-started/fixing-npm-permissions)
## Build
* `cd <noms>/clients/explore`
* `./link.sh`
* `npm install`
* `npm run build`

View File

@@ -6,10 +6,10 @@ This is an (incomplete) sample app that visualizes pitching data as a heatmap.
* [`<noms>/clients/server`](../server)
* Node.js: https://nodejs.org/download/
* You probably want to configure npm to [use a global module path that your user owns](https://docs.npmjs.com/getting-started/fixing-npm-permissions)
## Build
* `cd <noms>/clients/explore`
* `./link.sh`
* `npm install`
* `npm run build`

View File

@@ -5,7 +5,7 @@ var React = require('react');
var Map = require('./map.js');
noms.getDataset('mlb/heatmap').then(function(s) {
return decode.readValue(s, noms.getChunk);
return noms.readValue(s, noms.getChunk);
}).then(getPitchers).then(renderPitchersList).catch(function(err) {
console.error(err);
});

View File

@@ -37,7 +37,7 @@ function getRoot() {
}
function getDataset(id) {
return fetch(rpc.get + '?id=' + id)
return fetch(rpc.dataset + '?id=' + id)
}
module.exports = {