All Projects → willsoto → Angular Chartist.js

willsoto / Angular Chartist.js

Licence: mit
Angular directive for Chartist.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Angular Chartist.js

Chartkick.py
Create beautiful Javascript charts with minimal code
Stars: ✭ 695 (+237.38%)
Mutual labels:  charts, charting-library
Echarts
Apache ECharts is a powerful, interactive charting and data visualization library for browser
Stars: ✭ 49,119 (+23744.17%)
Mutual labels:  charts, charting-library
Amcharts4
The most advanced amCharts charting library for JavaScript and TypeScript apps.
Stars: ✭ 907 (+340.29%)
Mutual labels:  charts, charting-library
Reactochart
📈 React chart component library 📉
Stars: ✭ 459 (+122.82%)
Mutual labels:  charts, charting-library
Highcharts Ng
AngularJS directive for Highcharts
Stars: ✭ 1,741 (+745.15%)
Mutual labels:  charts, angularjs
Abixen Platform
Abixen Platform
Stars: ✭ 530 (+157.28%)
Mutual labels:  charts, angularjs
Devextreme
HTML5 JavaScript Component Suite for Responsive Web Development
Stars: ✭ 1,385 (+572.33%)
Mutual labels:  charts, charting-library
Fcharts
📊 [wip] Create beautiful, responsive, animated charts using a simple and intuitive API.
Stars: ✭ 318 (+54.37%)
Mutual labels:  charts, charting-library
React D3 Components
D3 Components for React
Stars: ✭ 1,599 (+676.21%)
Mutual labels:  charts, charting-library
Anychart Android
AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
Stars: ✭ 1,762 (+755.34%)
Mutual labels:  charts, charting-library
Flutter echarts
A Flutter widget to use Apache ECharts (incubating) in a reactive way.
Stars: ✭ 420 (+103.88%)
Mutual labels:  charts, charting-library
Graphic
A Flutter data visualization library based on Grammar of Graphics.
Stars: ✭ 173 (-16.02%)
Mutual labels:  charts, charting-library
React Chartjs 2
React components for Chart.js, the most popular charting library
Stars: ✭ 4,667 (+2165.53%)
Mutual labels:  charts, charting-library
Lavacharts
Lavacharts is a graphing / charting library for PHP 5.4+ that wraps Google's Javascript Chart API.
Stars: ✭ 587 (+184.95%)
Mutual labels:  charts, charting-library
React Jsx Highcharts
Highcharts built with proper React components
Stars: ✭ 336 (+63.11%)
Mutual labels:  charts, charting-library
Teechart Vcl Samples
Sample programs showing how to use TeeChart VCL for Delphi and C++ Builder
Stars: ✭ 24 (-88.35%)
Mutual labels:  charts, charting-library
Anychart
AnyChart is a lightweight and robust JavaScript charting solution with great API and documentation. The chart types and unique features are numerous, the library works easily with any development stack.
Stars: ✭ 288 (+39.81%)
Mutual labels:  charts, charting-library
Lightweight Charts
Financial lightweight charts built with HTML5 canvas
Stars: ✭ 4,390 (+2031.07%)
Mutual labels:  charts, charting-library
Svelte Frappe Charts
📈 Svelte bindings for frappe-charts.
Stars: ✭ 111 (-46.12%)
Mutual labels:  charts, charting-library
Matplotplusplus
Matplot++: A C++ Graphics Library for Data Visualization 📊🗾
Stars: ✭ 2,433 (+1081.07%)
Mutual labels:  charts, charting-library

angular-chartist.js

Angular 1.x directive for Chartist.js

Looking for the Angular version?

Installation

Current

npm install angular-chartist.js chartist angular --save
yarn add angular-chartist.js chartist angular

Next

npm install [email protected] chartist angular --save
yarn add [email protected] chartist angular

Usage

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

Using Plugins

Simply put the plugins array in the options object.

Example:

$scope.chartOptions = {
  plugins: [
    Chartist.plugins.ctPointLabels({
      textAnchor: 'middle'
    })
  ]
};

Issues?

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].