diff options
author | Zane C. Bowers-Hadley <vvelox@vvelox.net> | 2019-05-06 10:33:49 +0300 |
---|---|---|
committer | Zane C. Bowers-Hadley <vvelox@vvelox.net> | 2019-05-06 10:33:49 +0300 |
commit | a5462e5aa7eafc37f04d8305f6b0d6421a9370dc (patch) | |
tree | a0d4561a434ba7503426fa28d74a562893f5dde6 | |
parent | 8dbe11e55914b4c4f6d50bf5bf1b7b02c3a2e5b9 (diff) |
update the readme
-rw-r--r-- | README.md | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -104,31 +104,30 @@ This generates the chart and binds it to the HTML. Please note that while C3 supports area and gauge, this currently lacks support for those. -#### chart-generate-raw +#### chart-complex-start / chart-complex-stop As to how to start using this, it is highly started reading https://c3js.org/gettingstarted.html . | Variable | Default | Required | Description | | --- | --- | --- | --- | -| raw | null | yes | The raw inner JSON for c3.generate. | - +| chart | chart | no | The name of the chart to bind to. | ``` -{{% chart-generate-raw raw="bindto: '#chart', +{{% chart-complex-start chart="foo" %}} data: { columns: [ ['data1', 30, 200, 100, 400, 150, 250], ['data2', 50, 20, 10, 40, 15, 25] ] }" -%}} +{{% chart-complex-stop %}} ``` is the equivalent of this... ``` var chart = c3.generate({ - bindto: '#chart', + bindto: '#foo', data: { columns: [ ['data1', 30, 200, 100, 400, 150, 250], |