Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
dmn-elex-historical-share
Advanced tools
Chart module comparing Donald Trump's vote margin in Texas to previous republican presidential candidates with smart text.
Chart module comparing Donald Trump's vote margin in Texas to previous republican presidential candidates with smart text.
$ npm install --save dmn-elex-historical-share
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, HistoricalShare
:
<script src="some/path/to/global-chart.js"></script>
To use as a module, simply import the chart object:
import HistoricalShare from 'dmn-elex-historical-share';
The chart object has two methods, one to create the chart, initially, and another to update it.
var myChart = new HistoricalShare();
// create needs a selection string and prefectched data
myChart.create('#chart', data);
// update needs only new data
myChart.update(newData);
The data is expected to be the complete results for U.S. president.
To apply this chart's default styles when using SCSS, simply define the variable $HistoricalShare-container
to represent the ID or class of the chart's container(s) and import the _chart-styles.scss
partial.
$HistoricalShare-container: '#chart';
@import 'path/to/dmn-elex-historical-share/src/scss/_chart-styles';
This chart should be in a container with a fixed height of 185px
and a set style position: relative;
. Position the container absolutely at the top or bottom of any containing div for more control. The chart will expand with the width of its container, but it's ideal range is between 250px
and 320px
.
Be sure to grab styles for this chart in styles.scss
.
This chart requires two hosted images:
Just run gulp:
$ gulp
Or to minimize javascript before publishing:
$ gulp --production
FAQs
Chart module comparing Donald Trump's vote margin in Texas to previous republican presidential candidates with smart text.
The npm package dmn-elex-historical-share receives a total of 3 weekly downloads. As such, dmn-elex-historical-share popularity was classified as not popular.
We found that dmn-elex-historical-share 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.