From 1a3d32fe3bf2569a46267557ac852bf51d4df7ab Mon Sep 17 00:00:00 2001 From: Nick Randall Date: Fri, 25 Mar 2016 02:42:02 -0600 Subject: [PATCH] update example in readme --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cdb02b9..36a5a7b 100644 --- a/README.md +++ b/README.md @@ -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' } }; @@ -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