Socket
Book a DemoInstallSign in
Socket

chartist-plugin-slicedonutmargin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chartist-plugin-slicedonutmargin

Slice donut margin for Chartist.js

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
13
-7.14%
Maintainers
1
Weekly downloads
 
Created
Source

chartist-plugin-slicedonutmargin

Simply published jeromeWeb's https://github.com/jeromeWeb/chartist-plugin-slicedonutmargin to npm

Implements a legend for Chartist charts.

Install

$ npm install chartist-plugin-slicedonutmargin --save


## Usage

In an example chart:

```javascript
var chart = new Chartist.Pie('.ct-chart', {
  labels: [1, 2, 3, 4, 5, 6, 7],
  series: [
    [2, 4, 2, 5, 4, 3, 6]
  ]
}, {
  plugins: [
    Chartist.plugins.ctSliceDonutMargin({
      sliceMargin: 6
    })
  ]
});

or if you like

import ChartistSliceDonutMargin from 'chartist-plugin-slicedonutmargin'

...
  plugins: [
    ChartistSliceDonutMargin({
      sliceMargin: 2
    })
  ]
...

Keywords

chartist

FAQs

Package last updated on 06 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.