Skip to content

zingchart/gitbook-plugin-zingchart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2021 UPDATE:

This plugin is no longer maintained. It will not work with newer versions of GitBook. This repository exists purely for historical reasons. No further updates will be made.

ZingChart integration for GitBook

1. You can use install it via NPM and save it to package.json:

$ npm install gitbook-plugin-zingchart --save

2. add the plugin to book.json config

{
    "plugins": [ "zingchart"]
}

3. include zingchart block in your markdown files.

{% 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.

Examples

{% 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 %}

Embedded JSON

About

ZingChart plugin for Gitbook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published