Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
ember-d3-scale
Advanced tools
This library provides a suite of Ember helpers around the d3 scale library. Support for more features is ongoing.
Currently, there are no configuration options for this addon in config/environment.js
. At the moment, this addon will add all the required d3
dependencies.
You can view a demo of a few ways to use these helpers here
linear-scale
export default Ember.Component.extend({
domain: [0, 10],
range: [0, 100]
});
{{#with (linear-scale domain range nice=true) as |scale|}}
<span>I am {{scale-value scale 5}} 50 years old.</span>
{{/with}}
time-scale
export default Ember.Component.extend({
domain: [
new Date(2016, 2, 1),
new Date(2016, 2, 31)
]
});
{{#with (time-scale domain) as |scale|}}
{{#each (scale-ticks scale (time-interval 'day')) as |date|}}
<a>{{date}}</a>
{{/each}}
{{/with}}
seq-color-scale
Sequential color scale description.
band-scale
Band scale description
point-scale
Point Scale description
cat-color-scale
Categorical color scale.
scale-ticks
Scale ticks
scale-value
Get the calculated value from a scale
immut-array
Immutable array helper description
time-interval
A time interval helper.
git clone
this repositorynpm install
bower install
ember server
npm test
(Runs ember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
FAQs
A couple of Ember helpers around D3 Scales
The npm package ember-d3-scale receives a total of 0 weekly downloads. As such, ember-d3-scale popularity was classified as not popular.
We found that ember-d3-scale demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.