1.0.6 • Published 8 months ago

gitbook-plugin-echarts v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
8 months ago

gitbook-plugin-echarts

Build Status Coverage Status NPM Version NPM Downloads

echarts plugin for Honkit and GitBook.

Installation

npm install gitbook-plugin-echarts

Add this plugin into book.json.

{
  "plugins": ["echarts"]
}

Features

  • Support HTML, PDF, EPUB output(make sure your gitbook support SVG)
  • Support `chart code block quote
  • Multi code style support

Beautiful Chat

Bar chat Pie chat

Configuration

book.json add the echarts options

"pluginsConfig": {
  "chart": {

  }
}

Usage

To include a echarts diagram, just wrap your definition in a "chart" code block. For example:

Also you can put in your book block as

{% chart %}
{
    "title": {
        "text": "Fruits number"
    },
    "tooltip": {},
    "legend": {
        "data":["Number"]
    },
    "xAxis": {
        "data": ["Apple","Banana","Peach","Pear","Grape","Kiwi"]
    },
    "yAxis": {},
    "series": [{
        "name": "Number",
        "type": "bar",
        "data": [5, 20, 36, 10, 10, 20]
    }]
}
{% endechart %}

Extend the width

Code mode:

Template mode:

{% chart width="800px" height="800px" %}

If use both configure method, the code configure will overwrite the template configure.

Learn echarts

echarts

Thanks

See also

These plugins are also available on honkit.

PluginDescription
gitbook-plugin-umlA plug-in that use plantuml to draw beautiful pictures
gitbook-plugin-wavedromA plug-in that can draw waveforms and register tables
gitbook-plugin-sequenceA plug-in that can draw sequence diagrams
gitbook-plugin-flowA plug-in that can draw flowchart.js diagrams
gitbook-plugin-echartsA plug-in that can draw various charts such as bar/pie
1.0.6

8 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.0.17

6 years ago

0.0.16

7 years ago

0.0.15

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago