Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ember-cli-sparkline
Advanced tools
An Ember Addon containing components for rendering sparkline charts.
"A sparkline is a very small line chart, drawn without axes or coordinates. It presents the general shape of the variation (typically over time) in a simple and highly condensed way."
A lightweight sparkline component that renders in SVG. Perfect if you want to render simple charts without the overhead of loading a charting library or d3. Great for rendering lots of live data streams. Supports line and area sparklines.
Run ember install ember-cli-sparkline
from the root folder of your ember project to install this addon.
The sparkline component is available for use in your templates:
{{ember-cli-sparkline points=data}}
The only required attribute is 'points'. This should be an array of objects with an 'x' and 'y' property. 'x' and 'y' should be numbers.
Example points data:
data: Ember.A([
{
x: 1,
y: 5
},
{
x: 2,
y: 10
},
{
x: 3,
y: -20
}
])
Note: The sparkline must be given a width and height. The dummy app applies width and height styles targetting the .ember-cli-sparkline CSS class that is present on the root element of the sparkline component.
Ember-cli-sparkline adds no styles/CSS to your project by default. The following hooks are available for styling with CSS:
This is an SVG element. If you want the sparkline to fill its container, you could give the container position: relative; and then apply the following rule:
.ember-cli-sparkline {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
This is an SVG path element that represents the line drawn by the data points. The following attributes are useful for styling the sparkline's line element:
.ember-cli-sparkline_line {
stroke: red;
stroke-width: 1px;
stroke-linejoin: round;
}
This is an SVG path element representing the area beneath the data points. The following attributes are useful for styling the sparline's area element:
.ember-cli-sparkline_area {
fill: #444;
}
This should be an array of objects with an 'x' and 'y' property. 'x' and 'y' should be numbers.
The key to the x property in each data point.
The key to the y property in each data point.
Whether to render a path representing the line along the data points.
Whether to render a path representing the area beneath the data points.
git clone
this repositorynpm install
bower install
ember server
ember test
ember test --server
For more information on using ember-cli, visit http://www.ember-cli.com/.
FAQs
(Deprecated) An Ember Addon containing components for rendering SVG sparkline charts.
We found that ember-cli-sparkline 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.