0.0.3 • Published 6 years ago

chartjs-plugin-bar-chart-annotation v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

chartjs-plugin-bar-chart-annotation

NPM Version License Stats Downloads Stats Github stars Github issues

Bar chart annotation for Chart.js

nodei.co

Installation

npm install chartjs-plugin-bar-chart-annotation --save

Usage example

const barChartAnnotationPlugin = require("../src/index");

const {
  clearPlugins,
  showNOOnTopOfBarChartPlugin,
  showNOOnBottomOfBarChartPlugin,
  showInfoOnTopOfBarChartPlugin
} = barChartAnnotationPlugin;

const Chart = {}; // Should require('chart.js');
// Just in case one plguin gets registered twice
clearPlugins(Chart, [
  showNOOnTopOfBarChartPlugin
]);

Chart.pluginService.register(showNOOnTopOfBarChartPlugin);

npm.io

// Just in case one plguin gets registered twice
clearPlugins(Chart, [
  showNOOnBottomOfBarChartPlugin
]);

Chart.pluginService.register(showNOOnBottomOfBarChartPlugin);

npm.io

// Just in case one plguin gets registered twice
clearPlugins(Chart, [
  showInfoOnTopOfBarChartPlugin
]);

Chart.pluginService.register(showInfoOnTopOfBarChartPlugin);

npm.io

For more examples and usage, please refer to the Wiki.

Development setup

git clone git@github.com:nerdmax/chartjs-plugin-bar-chart-annotation.git
cd chartjs-plugin-bar-chart-annotation
npm install

Release History

  • 0.0.2
    • Update readme.md
  • 0.0.1
    • Put all source code here, work in progress

Meta

Max LIU – My personal website – mrliucan@foxmail.com

Contributing

  1. Fork it (https://github.com/nerdmax/chartjs-plugin-bar-chart-annotation/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request
0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago