Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
dmn-elex-texas-choropleth
Advanced tools
Chart module for election Texas county choropleths.
$ npm install --save dmn-elex-texas-choropleth
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, TexasChoropleth
:
<script src="some/path/to/global-chart.js"></script>
To use as a module, simply import the chart object:
import TexasChoropleth from 'dmn-elex-texas-choropleth';
The chart object has two methods, one to create the chart, initially, and another to update it.
var myChart = new TexasChoropleth();
// create needs a selection string and prefectched data and geoData (topojson)
myChart.create('#chart', data, geoData);
// update needs only new data
myChart.update(newData);
// resize based on how the container has changed
myChart.resize('#chart')
To apply this chart's default styles when using SCSS, simply define the variable $TexasChoropleth-container
to represent the ID or class of the chart's container(s) and import the _chart-styles.scss
partial.
$TexasChoropleth-container: '#chart';
@import 'path/to/dmn-elex-texas-choropleth/src/scss/_chart-styles';
Just run gulp:
$ gulp
Or to minimize javascript before publishing:
$ gulp --production
FAQs
State choropleth module for DMN elections project.
The npm package dmn-elex-texas-choropleth receives a total of 13 weekly downloads. As such, dmn-elex-texas-choropleth popularity was classified as not popular.
We found that dmn-elex-texas-choropleth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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.