Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
acbdf42
Major refactor of Sheetsee (the Browserify boogie!)
remixz Aug 17, 2013
21f31b0
Create minified and non-minified versions, use lodash.assign for extend.
remixz Sep 29, 2013
9430133
add tables module
Oct 20, 2013
5adadb6
fix cdn links, edit build components
Oct 20, 2013
eff0413
new build
Oct 21, 2013
6cbb4a8
modularize
Nov 4, 2013
df61907
starting new docs
Nov 16, 2013
e527d69
file org
Nov 16, 2013
14791d7
working on readmes
Nov 27, 2013
8cbca9c
working on readmes
Dec 9, 2013
8839a4a
readmes
Dec 9, 2013
db3bfcc
readmes
Dec 11, 2013
5a92f64
update to accurate charting documentation
Dec 11, 2013
686e20f
start demo pages
Dec 11, 2013
9a4101d
updating docs and repo
Dec 11, 2013
c4a4e42
working on templates
Dec 19, 2013
57982f2
updates
Dec 29, 2013
a7e45ac
gahhh pagination
Dec 31, 2013
797e941
two working tables
Dec 31, 2013
bf165d1
SUCH WIN PAGINATION
Dec 31, 2013
91e76d2
fixed icanhas/jquery issue
Jan 1, 2014
4f82851
make map work with provided template
Jan 1, 2014
f3fe3be
chart demo
Jan 13, 2014
27af90f
static site generatin
Feb 2, 2014
e5b9b2a
documentation site
Feb 2, 2014
343bc47
working on documentation
Feb 2, 2014
305b7d3
working on them docs
Feb 3, 2014
c00cc57
more demo stylz
Feb 3, 2014
34812f7
stylz
Feb 3, 2014
701f3d1
so close
Feb 3, 2014
88af1d1
docin'
Feb 4, 2014
77bb56a
working on things
Feb 4, 2014
fc6e3a4
..
Feb 4, 2014
8d403ef
edits
Feb 8, 2014
85ec5a1
chart comb through
Feb 9, 2014
7acf10c
moar chart
Feb 9, 2014
3e8fa55
mappy
Feb 9, 2014
1f7ffba
moar:
Feb 9, 2014
492f291
more
Feb 9, 2014
d4a0b5c
ready
Feb 9, 2014
8ac7585
old readme
Feb 9, 2014
929ecd1
remove site folder, put on gh-pages
Feb 9, 2014
3bc3296
v3
Feb 9, 2014
9fcd018
add
Feb 9, 2014
ddbb8d5
add site dir, fix rel link to demos
Feb 9, 2014
83446c9
merge
Feb 9, 2014
facc7bf
change link
Feb 9, 2014
0adca0d
footer link
Feb 9, 2014
f3328c0
link
Feb 9, 2014
b1fd5ec
home link
Feb 14, 2014
58c35df
fix links, fixes #37
Feb 14, 2014
5203c92
rebuild site
Feb 14, 2014
fb83f84
remove tempalte line
Feb 14, 2014
e5f1c7d
change to new tabletop in demos
Feb 24, 2014
4ead5da
fixed typo in readme.md
Feb 26, 2014
2e9daac
Merge pull request #38 from stvnjacobs/fix-typo-readme
Feb 26, 2014
970a373
fixes relative links in docs pointing to demos - fixes #39
Feb 28, 2014
1bc14e3
Merge branch 'master' of https://github.com/jlord/sheetsee.js
Feb 28, 2014
c62feb5
link to font on demos @muan is the best
Mar 3, 2014
8fb196e
rebuild site
Mar 3, 2014
7850ee5
contributing doc
Mar 4, 2014
b19afd1
add meta utf-8 in basic setup
Mar 15, 2014
c463c64
update sheetsee.js
Mar 23, 2014
3ba550f
Merge branch 'master' of https://github.com/jlord/sheetsee.js
Mar 23, 2014
aa1bffc
Update tabletop, supports new sheets!
Apr 28, 2014
06134da
fix sss.css typo
huaruiw May 9, 2014
20497e8
update table doc
May 9, 2014
e541fe6
Merge pull request #44 from huaruiwu/patch-1
May 9, 2014
0cc7795
update sheetsee and docs in site
May 10, 2014
a8993db
Merge branch 'master' of https://github.com/jlord/sheetsee.js
May 10, 2014
5fbef20
add tabletop1.3.4
May 10, 2014
9461b96
add tabletop1.3.4
May 10, 2014
006e8be
update tables docs
May 11, 2014
545d917
update documentation, changelong re: new tables, spreadsheets
May 11, 2014
60d5e2f
fresh site files
May 11, 2014
33ebbf3
add polygon info to doc
May 24, 2014
af4027c
update page
May 24, 2014
b61d640
add shapeJSON fix
May 25, 2014
4bb8ae0
table and maps updates
May 25, 2014
c4268e0
added an example project
mjhea0 May 28, 2014
4892d89
Update readme.md
mjhea0 May 28, 2014
a5c3785
Merge pull request #47 from mjhea0/patch-4
May 28, 2014
cc7c719
update build file
Jun 3, 2014
808b604
multiple maps woo
Jun 10, 2014
c976666
update sheetsee, add second map
Jun 11, 2014
e1d1bb2
fix typo
janl Jun 17, 2014
7a5fdbc
Merge pull request #51 from janl/patch-1
Jun 17, 2014
fcfb135
typo fixes #53
Jul 3, 2014
59cc22f
ew
Aug 7, 2014
0d0ca3d
little tweaks
Aug 7, 2014
313b22f
the bowers
Aug 8, 2014
2e0066f
don't need these
Aug 8, 2014
a986cbb
fix bower.json
Aug 8, 2014
0242f87
pagination fix, docs and such
Sep 7, 2014
2fbc5b0
style tweaks
Sep 8, 2014
333ee3f
styles
Sep 8, 2014
5d2ed89
stylesss
Sep 8, 2014
ac07a0e
edit about page
Sep 8, 2014
3225e6b
edit forkngo page
Sep 8, 2014
6d154e0
update font link
Sep 8, 2014
bbe1e1e
fix highlighting
Sep 8, 2014
4c860b8
favicon
Sep 8, 2014
0af61d6
add favicon to pages:
Sep 8, 2014
34b5c32
add favicon link
Sep 8, 2014
5d8ab8a
deleted
Sep 8, 2014
37babb3
gahh
Sep 8, 2014
2171022
fix id pattern, fixes #61
Oct 2, 2014
334205d
s/hand/pointer
notwaldorf Oct 8, 2014
5633bd7
Merge pull request #62 from notwaldorf/master
Oct 9, 2014
3e49b59
💥
notwaldorf Oct 10, 2014
40f907e
Merge pull request #63 from notwaldorf/fix-all-the-hands
Oct 10, 2014
069b019
Fix link path to table demo
Nov 3, 2014
88e64ec
Merge pull request #66 from eeeschwartz/patch-1
Nov 3, 2014
070c95a
add js deps
Jan 3, 2015
13edc77
correct style deps, fixes #68
Jan 3, 2015
0d1f4fc
fix link
Feb 15, 2015
93bf5db
fix link
Feb 15, 2015
60195a4
add scriptz
Feb 16, 2015
d0ce4a3
fix
Feb 16, 2015
1b26f5e
fix typo in git-stage
antn Feb 24, 2015
c637e64
Merge pull request #74 from antn/fix-scripts-typo
Feb 24, 2015
20520bb
Remove moot `version` property from bower.json
kkirsche Jun 12, 2015
3498015
Merge pull request #78 from kkirsche/patch-1
Jun 18, 2015
1645c01
Update map tiles
jlord Aug 21, 2015
2143e6c
Upate docs
jlord Aug 22, 2015
244a138
Update docs
oeon Jun 24, 2016
51f26f9
Merge pull request #97 from oeon/update-docs
Jun 27, 2016
c30fd63
Closed accidentally open pre block
DanielBaird Sep 5, 2016
9fc5638
Merge pull request #103 from DanielBaird/patch-1
Sep 14, 2016
e7f6e9d
Corrected sentence that didn't make sense
tart2000 Jan 10, 2017
ce30087
Merge pull request #118 from tart2000/patch-1
Jan 10, 2017
0390711
Simplify readme
jlord Feb 3, 2017
9f32d3a
Link to issue and to another repo
jlord Feb 3, 2017
6b38041
Update About
jlord Mar 19, 2017
473f851
Delete chart files, reorganize
jlord Mar 19, 2017
c2bbb50
Delete chart files, reorganize
jlord Mar 19, 2017
1293b06
Update Basics
jlord Mar 19, 2017
4487bf0
Update Building
jlord Mar 19, 2017
aa55d39
Typo
jlord Mar 19, 2017
ae09630
Spec out changelog
jlord Mar 19, 2017
14f5890
Update fng
jlord Mar 19, 2017
350126d
Remove old site dir
jlord Mar 19, 2017
a392885
Move files
jlord Mar 19, 2017
7d37d6f
Update template
jlord Mar 19, 2017
5632639
Move file
jlord Mar 19, 2017
59aff96
Update scripts and eps
jlord Mar 19, 2017
bd6b995
Update readme
jlord Mar 19, 2017
0a0b5d6
Update docs
jlord Mar 19, 2017
f2a5b27
Update module docs
jlord Mar 19, 2017
e4184c9
Update front page
jlord Mar 19, 2017
28b8d8a
Add a clear-html-files script
jlord Mar 19, 2017
c77ee26
Update build pages script
jlord Mar 19, 2017
5224029
Lint
jlord Mar 19, 2017
bbb53cc
Update footer link
jlord Mar 19, 2017
0d1dd3a
Update raw files
jlord Mar 19, 2017
7ec395f
Build
jlord Mar 19, 2017
7bd7072
Remove footer link
jlord Mar 19, 2017
291bf98
Remove local dep
jlord Mar 19, 2017
21da950
Build
jlord Mar 19, 2017
aa6cc64
Update demos
jlord Mar 20, 2017
35931a2
Change footer
jlord Mar 20, 2017
c959370
Update sheetsee link
jlord Mar 21, 2017
617921a
Add new sheetsee
jlord Mar 21, 2017
38fee5b
New image
jlord Mar 29, 2017
3a1cfeb
Remove footer link
jlord Mar 29, 2017
c28fa33
Update footers with rename, add Glitch to tempaltes
jlord Mar 29, 2017
88e5d5b
Add the new stuff
jlord Mar 29, 2017
b9b52f3
Use bullets instead
jlord Mar 29, 2017
e3c7a64
Fix link
jlord Mar 29, 2017
1d6e211
Update map docs
jlord Mar 29, 2017
ced3c04
Update table docs
jlord Mar 29, 2017
cd8850f
Updates
jlord Mar 29, 2017
5da6657
Loading...
jlord Mar 29, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
readmes
  • Loading branch information
jlord committed Dec 9, 2013
commit 8839a4ac678e46505109348a83a5c95e1ce4dd91
18 changes: 11 additions & 7 deletions docs/building.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
You can customize your sheetsee build with just the parts you want to use. If you want to just use the full version, you can grab it here in [js/sheetsee.js]().
# Just Right

**To build your sheetsee you'll need [Node.js]() on your computer and a command line**
You can customize your sheetsee build with just the parts you want to use. If you want to just use the full version, you can grab it here at [github.com/jlord/sheetsee.js]().

**To build your sheetsee you'll need [Node.js](http://www.nodejs.org) and [NPM](http://www.npmjs.org) on your computer and a command line**

## Install sheetsee from NPM
The sheetsee module contains the basic sorting, organizing data functions and the script for building on the other modules. Create a folder for you new project and `cd` into it. Then install `sheetsee`.

```cd myNewProject```
```npm install sheetsee```
```bash
cd myNewProject
npm install sheetsee
```

Once you've decided which modules you want run this command `sheetsee ` adding:
Here are the options for the different modules. If you want save the generated file as _sheetsee.js_ then add the `save` option.

- `-m` or `-maps` for maps
- `-t` or `-tables` for tables
- `-c` or `-charts` for charts
- `--save` to write out the file*

* _defaults to standardout on your console which you can `| pbcopy`
_* defaults to standardout on your console which you can_ `| pbcopy`

So for instance, `sheetsee -m -t --save` will build you a sheetsee with the map and tables sections built in and save it as a file named sheetsee.js.
So for instance, `sheetsee -m -t --save` will build you a sheetsee with the basic **data** functions, the **map** and **tables** sections built in and save it as a file named **sheetsee.js**.
28 changes: 28 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## _____
### Sheetsee v3


## August 13, 2013
### Charting Intake

D3 charts need an array of objects, and something to chart: the thing itself (aka labels) and the corresponding value (aka units). Your data usually contains more than D3 needs to make the chart, so you have to tell it what to chart from your data to chart.

Previously Sheetsee required you pass your data through a function, `addUnitsAndLabels()` which took in your data and the things you wanted to chart, reformatted your data for you so that you could pass it into one of the d3 charts. This is one more step than actually needs to happen.

Now Sheetsee just asks for what you want your _labels_ and _units_ to be in the options you give it when calling the chart function. It then sorts the data correctly on the inside of the chart function. Yay, easier!

```
var options = {
labels: "name",
units: "cuddleability",
m: [60, 60, 30, 150],
w: 600, h: 400,
div: "#barChart",
xaxis: "no. of pennies",
hiColor: "#FF317D"
}
```

Thanks @maxogden for the help with this.

### Started doing this changelong pretty late in the game.
1 change: 1 addition & 0 deletions docs/custom-charts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Coming Soon**
55 changes: 37 additions & 18 deletions docs/sheetsee-charts.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# sheetsee-charts

![sheetsee](https://raw.github.com/jllord/sheetsee-cache/master/img/sheetsee-03.png)

Module for working with charts with sheetsee.js. It provides three d3 chart options to use with your spreadsheet data. Below is a portion of the sheetsee.js documentation regarding charts, for the full sheetsee.js documentation, go [here](http://jlord.github.io/sheetsee.js)!

---
Sheetsee provides three d3 chart options to use with your spreadsheet data: a bar chart, line chart and pie graph. You can also plug in your own custom d3 chart to sheetsee, read about that [here](custom-charts.md).

## Make a Chart

Expand All @@ -18,15 +14,21 @@ You can also make your own d3 chart in a separate .js file, link to that and pas

To create a bar chart you'll need to add a placeholder `<div>` in your HTML with an id.

<div id="barChart"></div>
```HTML
<div id="barChart"></div>
```

In your CSS, give it dimensions.

#barChart {height: 400px; max-width: 600px; background: #F8CDCD;}
```CSS
#barChart {height: 400px; max-width: 600px; background: #F8CDCD;}
```

In a `<script>` tag set up your options.

var barOptions = {m: [60, 60, 30, 150], w: 600, h: 400, div: "#barChart", xaxis: "no. of pennies", hiColor: "#FF317D"}
```javascript
var barOptions = {m: [60, 60, 30, 150], w: 600, h: 400, div: "#barChart", xaxis: "no. of pennies", hiColor: "#FF317D"}
```

* **m** is margins: top, right, bottom, left
* **w** and **h** are width and height, this should match your CSS specs
Expand All @@ -36,21 +38,29 @@ In a `<script>` tag set up your options.

Then call the `d3BarChart()` function with your **data** and **options**.

Sheetsee.d3BarChart(data, barOptions)
```javascript
Sheetsee.d3BarChart(data, barOptions)
```

### Line Chart

To create a line chart you'll need to add a placeholder `<div>` in your html with an id.

<div id="lineChart"></div>
```HTML
<div id="lineChart"></div>
```

In your CSS, give it dimensions.

#lineChart {height: 400px; max-width: 600px; background: #F8CDCD;}
```CSS
#lineChart {height: 400px; max-width: 600px; background: #F8CDCD;}
```

In a `<script>` tag set up your options.

var lineOptions = {m: [80, 100, 120, 100], w: 600, h: 400, div: "#lineChart", yaxis: "no. of pennies", hiColor: "#14ECC8"}
```
var lineOptions = {m: [80, 100, 120, 100], w: 600, h: 400, div: "#lineChart", yaxis: "no. of pennies", hiColor: "#14ECC8"}
```

* **m** is your margins: top, right, bottom, left
* **w** and **h** are width and height, this should match your CSS specs
Expand All @@ -60,21 +70,28 @@ In a `<script>` tag set up your options.

Then call the `d3LineChart()` function with your **data** and **options**.

Sheetsee.d3LineChart(data, lineOptions)
```
Sheetsee.d3LineChart(data, lineOptions)
```

### Pie Chart

To create a bar chart you'll need to add a placeholder `<div>` in your html with an id.

<div id="pieChart"></div>

```HTML
<div id="pieChart"></div>
```
In your CSS, give it dimensions.

#pieChart {height: 400px; max-width: 600px; background: #F8CDCD;}
```CSS
#pieChart {height: 400px; max-width: 600px; background: #F8CDCD;}
```

In a `<script>` tag set up your options.

var pieOptions = {m: [80, 80, 80, 80], w: 600, h: 400, div: "#pieChart", hiColor: "#14ECC8"}
```javascript
var pieOptions = {m: [80, 80, 80, 80], w: 600, h: 400, div: "#pieChart", hiColor: "#14ECC8"}
```

* **m** is your margins: top, right, bottom, left
* **w** and **h** are width and height, this should match your CSS specs
Expand All @@ -83,4 +100,6 @@ In a `<script>` tag set up your options.

Then call the `d3PieChart()` function with your **data** and **options**.

Sheetsee.d3PieChart(data, pieOptions)
```javascript
Sheetsee.d3PieChart(data, pieOptions)
```
85 changes: 55 additions & 30 deletions docs/sheetsee.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# sheetsee

![sheetsee](https://raw.github.com/jllord/sheetsee-cache/master/img/sheetsee-03.png)

This module contains the basic functions for sorting and munipulating data for use in your [sheetsee.js](http://jlord.github.io/sheetsee.js) endeavors. Below is the portion of the [sheetsee.js](http://jlord.github.io/sheetsee.js) readme that covers the use of these functions. For the complete documentation including genera what is sheetsee, go [here](http://jlord.github.io/sheetsee.js)!

---
This is the core module to create a sheetsee.js library. It contains the functions for building your custom file as well as the basic data manipulation functions.

## Working With Your Data

Expand All @@ -14,44 +10,56 @@ Tabletop.js will return all of your data and it will be passed into your site as

This takes in your data, an _array of objects_, and searches for a _string_, **groupTerm**, in each piece of your **data** (formerly the cells of your spreadsheet). It returns the number of times it found the **groupTerm**.

getGroupCount(gData, "cat")
// returns 2
```javascript
getGroupCount(gData, "cat")
// returns 2
```

### Sheetsee.getColumnTotal(data, column)

Given your **data**, an _array of objects_ and a _string_ **column** header, this functions sums each cell in that column, so they best be numbers.

getColumnTotal(gData, "cuddlability")
// returns 11
```javascript
getColumnTotal(gData, "cuddlability")
// returns 11
```

### Sheetsee.getAveragefromColumn(data, column)

A really simple function that builds on `getColumnTotal()` by returning the average number in a **column** of numbers.

getColumnAverage(gData, "cuddlability")
// returns 1.8333333333333333
```javascript
getColumnAverage(gData, "cuddlability")
// returns 1.8333333333333333
```

### Sheetsee.getMin(data, column)

This will return an _array_ of _object_ or _objects_ (if there is a tie) of the element with the lowest number value in the **column** you specify from your **data**.

getMin(gData, "cuddlability")
// returns {breed: "Fat", cuddlability: "0", hexcolor: "#CDCF83"...}, {breed: "Grey", cuddlability: "0", hexcolor: "#9C9B9A"...}, {breed: "Creepy", cuddlability: "0", hexcolor: "#918376"...}
```javascript
getMin(gData, "cuddlability")
// returns {breed: "Fat", cuddlability: "0", hexcolor: "#CDCF83"...}, {breed: "Grey", cuddlability: "0", hexcolor: "#9C9B9A"...}, {breed: "Creepy", cuddlability: "0", hexcolor: "#918376"...}
```

### Sheetsee.getMax(data, column)

This will return an _array_ of _object_ or _objects_ (if there is a tie) of the element with the highest number value in the **column** you specify from your **data**.

getMin(gData, "cuddlability")
// returns {breed: "Teacup Maltese", cuddlability: "5", hexcolor: "#ECECEC", kind: "Dog", lat: "37.74832", long: "-122.402158", name: "Coco"...}
```javascript
getMin(gData, "cuddlability")
// returns {breed: "Teacup Maltese", cuddlability: "5", hexcolor: "#ECECEC", kind: "Dog", lat: "37.74832", long: "-122.402158", name: "Coco"...}
```

### Don't Forget JavaScript Math

Create variables that are the sums, differences, multiples and so forth of others. Lots of info on that [here on MDN](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math).

var profit09 = Sheetsee.getColumnTotal(gData, "2009")
var profit10 = Sheetsee.getColumnTotal(gData, "2010")
var difference = profit09 - profit10
```javascript
var profit09 = Sheetsee.getColumnTotal(gData, "2009")
var profit10 = Sheetsee.getColumnTotal(gData, "2010")
var difference = profit09 - profit10
```

#### What These Little Bits are Good For

Expand All @@ -61,50 +69,67 @@ You don't have to just create tables of your data. You can have other portions o

Takes **data** as an _array of objects_, a _string_ you'd like to **filter** and a _string_ of the **category** you want it to look in (a column header from your spreadsheet).

getMatches(gData, "dog", "kind")
```javascript
getMatches(gData, "dog", "kind")
```

Returns an _array of objects_ matching the category's filter.

[{"name": "coco", "kind": "dog"...}, {"name": "wolfgang", "kind": "dog"...},{"name": "cooc", "kind": "dog"...} ]

```javascript
[{"name": "coco", "kind": "dog"...}, {"name": "wolfgang", "kind": "dog"...},{"name": "cooc", "kind": "dog"...} ]
```

### Sheetsee.getOccurance(data, category)

Takes **data** as an _array of objects_ and a _string_ for **category** (a column header from your spreadsheet) you want tally how often an element occured.

getOccurance(gData, "kind")
```javascript
getOccurance(gData, "kind")
```

Returns an object with keys and values for each variation of the category and its occurance.

{"dog": 3, "cat": 3}
```javascript
{"dog": 3, "cat": 3}
```

### Sheetsee.makeColorArrayOfObject(data, colors)

If you use `getOccurance()` and want to then chart that data with d3.js, you'll need to make it into an _array_ (instead of an object) and add colors back in (since the hexcolor column applies to the datapoints in your original dataset and not this new dataset).

This function takes in your data, as an _object_, and an _array_ of hexidecimal color strings which you define.

var kinds = getOccurance(gData, "kind")
var kindColors = ["#ff00ff", "#DCF13C"]
```javascript
var kinds = getOccurance(gData, "kind")
var kindColors = ["#ff00ff", "#DCF13C"]

var kindData = makeColorArrayOfObjects(mostPopBreeds, breedColors)
var kindData = makeColorArrayOfObjects(mostPopBreeds, breedColors)
```

It will return an array of objects formatted to go directly into a d3 chart with the appropriate _units_ and _label keys_, like so:

[{"label": "dog", "units": 2, "hexcolor": "#ff00ff"}, {"label": "cat", "units": 3, "hexcolor": "#DCF13C"}]
```javascript
[{"label": "dog", "units": 2, "hexcolor": "#ff00ff"}, {"label": "cat", "units": 3, "hexcolor": "#DCF13C"}]
```

If you pass in an array of just one color it will repeat that color for all items. If you pass fewer colors than data elements it will repeat the sequences of colors for the remainder elements.

### Sheetsee.addUnitsLabels(arrayObj, oldLabel, oldUnits)

If you're using gData, the data directly from Tabletop, you'll need to format it before you use the d3 charts. You'll need to determine what part of your data you want to chart - what will be your label, what your charting, and what will be your units, how many of them are there (this should be a number).

var gData = [{"name": "coco", "kind": "dog", "cuddablity": 5}, {"name": "unagi", "kind": "cat", "cuddlability": 0}]
```javascript
var gData = [{"name": "coco", "kind": "dog", "cuddablity": 5}, {"name": "unagi", "kind": "cat", "cuddlability": 0}]
```

For istance, if from our original data above we want to chart the age of each cat, we'll use:

Sheetsee.addUnitsLabels(gData, "name", "cuddlability")
```javascript
Sheetsee.addUnitsLabels(gData, "name", "cuddlability")
```

Which will return an array, ready for the d3 charts:

[{"label": "coco", "kind": "dog", "units": 5}, {"label": "unagi", "kind": "cat", "units": 0}]
```javascript
[{"label": "coco", "kind": "dog", "units": 5}, {"label": "unagi", "kind": "cat", "units": 0}]
```
1 change: 1 addition & 0 deletions docs/tips.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**coming soon!**