Skip to content

Commit

Permalink
update example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Randall committed Mar 25, 2016
1 parent af842b1 commit 1a3d32f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Expand Up @@ -8,12 +8,12 @@ This is an optional decorator for KotoJS charts that allows chart authors to spe
```js
// JSON SCHEMA
const schema = {
type: 'object',
properties: {
height: {
type: 'number',
minimum: 500
}
height: {
type: 'number',
minimum: 500
},
fill: {
type: 'color'
}
};

Expand All @@ -32,6 +32,7 @@ class Chart extends Koto {

const chart = new Chart(d3.select(document.body));
chart.config('height', 400); // => throws Error
chart.config('fill', 'steelblue'); // valid
```
## Repo Usage
- `$ npm start` to run webpack-dev-server
Expand Down

0 comments on commit 1a3d32f

Please sign in to comment.