ZingChart plugin for Gitbook
npm install gitbook-plugin-zingchart
ZingChart integration for GitBook
==============
$ npm install gitbook-plugin-zingchart --save
`
$3
`
{
"plugins": [ "zingchart"]
}
`$3
`
{% zingchart width=300, height=300 %}
{
"type":"bar",
"series":[
{ "values": [35, 42, 67, 89]},
{ "values": [28, 40, 39, 36]}
]
}
{% endzingchart %}
`* Any key/value pairs that can be specified in zingchart.render can be declared in the
{% zingchart %} block separated by commas.
* To include a raw JSON block, it can be placed between the open and close blocks.
* To include an external JSON file, the dataurl attribute can be placed in the {% zingchart %} block.$3
`
{% zingchart dataurl='./zingchart.json', width=700, height=200 %}{% endzingchart %}
`
!External JSON`
{% zingchart width=700, height=200 %}
{
"type":"bar",
"series":[
{ "values": [35, 42, 67, 89]},
{ "values": [28, 40, 39, 36]}
]
}
{% endzingchart %}
``