New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

chartist-plugin-targetline

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-targetline

Target line plugin for Chartist.js charting library

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Target Line plugin for Chartist.js

A plugin for Chartist.js that allows the drawing of a target line on a chart.

Download

Download from npm:

npm install chartist-plugin-targetline

or bower:

bower install chartist-plugin-targetline

Available options and their defaults

var defaultOptions = {
  value = null,
  class = 'ct-target-line'
};

Sample usage in Chartist.js

var chart = new Chartist.Line('.ct-chart', {
  labels: [1, 2, 3, 4, 5, 6, 7],
  series: [
    [1, 5, 3, 4, 6, 2, 3],
    [2, 4, 2, 5, 4, 3, 6]
  ]
}, {
  plugins: [
    ctTargetLine({
      value: 1000
    })
  ]
});
.ct-target-line {
    stroke: blue;
    stroke-width: 2px;
    stroke-dasharray: 4px;
    shape-rendering: crispEdges;
}

Keywords

chartist

FAQs

Package last updated on 11 Aug 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