Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
dmn-elex-poll-closing-time-list
Advanced tools
A chart module for 2016 general-election poll closing times.
Chart module for 2016 general-election poll closing times.
$ npm install --save dmn-elex-poll-closing-time-list
This module uses ES6 syntax. To use as a pre-compiled module, you'll need a compiler like babel.
In the client, include the global-chart.js
bundle, which defines a global chart object, PollClosingTimeList
:
<script src="some/path/to/global-chart.js"></script>
To use as a module, simply import the chart object:
import PollClosingTimeList from 'dmn-elex-poll-closing-time-list';
The chart object has three methods, one to create the chart initially, one another to update it with new data and one to resize the chart.
Importantly, the update
and resize
functions have no effect with this static chart. They are included only to maintain a common API with all other election-related, pluggable charts from The Dallas Morning News.
var myChart = new PollClosingTimeList();
// create needs a selection string and prefectched data
myChart.create('#chart');
// update needs only new data
myChart.update();
To apply this chart's default styles when using SCSS, simply define the variable $PollClosingTimeList-container
to represent the ID or class of the chart's container(s) and import the _chart-styles.scss
partial.
$PollClosingTimeList-container: '#chart';
@import 'path/to/dmn-elex-poll-closing-time-list/src/scss/_chart-styles';
Write your chart code in chart.js
and add custom styles to _chart-styles.scss
.
Then, just run gulp:
$ gulp
Or to minimize javascript before publishing:
$ gulp --production
FAQs
A chart module for 2016 general-election poll closing times.
The npm package dmn-elex-poll-closing-time-list receives a total of 0 weekly downloads. As such, dmn-elex-poll-closing-time-list popularity was classified as not popular.
We found that dmn-elex-poll-closing-time-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.