Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/VVelox/hugo-dusky-neon-potato.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZane C. Bowers-Hadley <vvelox@vvelox.net>2019-05-06 10:33:49 +0300
committerZane C. Bowers-Hadley <vvelox@vvelox.net>2019-05-06 10:33:49 +0300
commita5462e5aa7eafc37f04d8305f6b0d6421a9370dc (patch)
treea0d4561a434ba7503426fa28d74a562893f5dde6
parent8dbe11e55914b4c4f6d50bf5bf1b7b02c3a2e5b9 (diff)
update the readme
-rw-r--r--README.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/README.md b/README.md
index 38c4396..a5ed16c 100644
--- a/README.md
+++ b/README.md
@@ -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],