
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
angular-chartist.js
Advanced tools
Angular 1.x directive for Chartist.js
Looking for the Angular version?
npm install angular-chartist.js chartist angular --save
yarn add angular-chartist.js chartist angular
npm install angular-chartist.js@next chartist angular --save
yarn add angular-chartist.js@next chartist angular
Make sure you have loaded the necessary scripts in the correct order.
Add angular-chartist
as a module dependency, like so:
// >= 4.1
import angular from 'angular';
import angularChartist from 'angular-chartist.js';
angular.module('app', [angularChartist]);
In your HTML, add the chartist
directive to any div
or make it a custom element:
<chartist class="ct-chart" chartist-data="chartist.barData" chartist-chart-type="Bar"></chartist>
Attribute | Type | Required |
---|---|---|
chartist-data | Object | Yes |
chartist-chart-type | String | Yes |
chartist-events * | Object | No |
chartist-chart-options | Object | No |
chartist-responsive-options | Array | No |
Format for Chartist events:
{
event: function eventHandler(obj) {
// do stuff on event
}
}
For the sorts of values these options accept, check out the Chartist.js docs
Simply put the plugins array in the options
object.
Example:
$scope.chartOptions = {
plugins: [
Chartist.plugins.ctPointLabels({
textAnchor: 'middle'
})
]
};
This directive is simply a wrapper, anything you pass to the directive gets passed right through to the appropriate method on the Chartist side. Any issues with the charts, data, options, etc, should be filed against Chartist.js
Feel free to file an issue / PR if you feel that the directive can be improved in some way though.
5.0.0-beta.2 (2018-08-19)
<a name="5.0.0-beta.1"></a>
FAQs
Angular directive for Chartist.js
The npm package angular-chartist.js receives a total of 323 weekly downloads. As such, angular-chartist.js popularity was classified as not popular.
We found that angular-chartist.js 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
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.