chart-js-pointer-plugin

0.1.1 • Public • Published

chart-js-pointer-plugin

ChartJS plugin that allows us to add pointer series of data to bar charts

alt text

Currently only works with horizontalBar

Sample options:

new Chart(ctx, {
enable: true,
type: 'horizontalBar',
data: barChartData,
options: {
plugins: {
dataPointer: {
fontFamily: 'FontAwesome',
pointer: '\uf063',
label: 'Clifford',
data: ["50", "30", "60"],
}
});

How to use

See /dist/index.html for example

Package Sidebar

Install

npm i chart-js-pointer-plugin

Weekly Downloads

10

Version

0.1.1

License

MIT

Unpacked Size

130 kB

Total Files

11

Last publish

Collaborators

  • hsieh_scott