npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

gitbook-plugin-highcharts

v0.7.8

Published

Gitbook Highcharts plugin

Readme

gitbook-plugin-highcharts

Using Highcharts chart library in Gitbook.

Config

Chart Library

Config in book.json:

{
  "plugins": [ "highcharts" ],
  "pluginsConfig": {
      "highcharts": {
          "type": "default"
      }
  }
}

Example for Highcharts

You SHOULD NOT specify the renderTo property for the chart.

{% chart %}
{
    "chart": {
        "type": "bar"
    },
    "title": {
        "text": "Fruit Consumption"
    },
    "xAxis": {
        "categories": ["Apples", "Bananas", "Oranges"]
    },
    "yAxis": {
        "title": {
            "text": "Fruit eaten"
        }
    },
    "series": [{
        "name": "Jane",
        "data": [1, 0, 4]
    }, {
        "name": "John",
        "data": [5, 7, 3]
    }]
}
{% endchart %}

Example of refreshing Clock for gitbook

{% highcharts %}
{
    "switcher": "clock"
}
{% endhighcharts %}
{% highcharts %}
{
    "switcher": "wordcloud",
    "title": {
        "text": "wordcloud"
    },
    "input": {
        "data": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean bibendum erat ac justo sollicitudin, quis lacinia ligula fringilla. Pellentesque hendrerit, nisi vitae posuere condimentum, lectus urna accumsan libero, rutrum commodo mi lacus pretium erat. Phasellus pretium ultrices mi sed semper. Praesent ut tristique magna. Donec nisl tellus, sagittis ut tempus sit amet, consectetur eget erat. Sed ornare gravida lacinia. Curabitur iaculis metus purus, eget pretium est laoreet ut. Quisque tristique augue ac eros malesuada, vitae facilisis mauris sollicitudin. Mauris ac molestie nulla, vitae facilisis quam. Curabitur placerat ornare sem, in mattis purus posuere eget. Praesent non condimentum odio. Nunc aliquet, odio nec auctor congue, sapien justo dictum massa, nec fermentum massa sapien non tellus. Praesent luctus eros et nunc pretium hendrerit. In consequat et eros nec interdum. Ut neque dui, maximus id elit ac, consequat pretium tellus. Nullam vel accumsan lorem."
    }
}
{% endhighcharts %}
{
   "chart":{
      "type":"funnel",
      "marginRight":100
   },
   "title":{
      "text":"销售漏斗",
      "x":-50
   },
   "plotOptions":{
      "series":{
         "dataLabels":{
            "enabled":true,
            "crop":false,
            "overflow":"none",
            "format":"<b>{point.name}</b> ({point.y:,.0f})",
            "color":"black",
            "softConnector":true
         },
         "neckWidth":"30%",
         "neckHeight":"25%"
      }
   },
   "legend":{
      "enabled":false
   },
   "series":[
      {
         "name":"用户",
         "data":[
            [
               "访问网站",
               15654
            ],
            [
               "下载产品",
               4064
            ],
            [
               "询价",
               1987
            ],
            [
               "发送合同",
               976
            ],
            [
               "成交",
               846
            ]
         ]
      }
   ]
}

Getting Start with Highcharts.