angular-flot

WebJar for angular-flot

Лицензия

Лицензия

MIT
Категории

Категории

Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

angular-flot
Последняя версия

Последняя версия

0.0.16
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-flot
WebJar for angular-flot
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/develersrl/angular-flot

Скачать angular-flot

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-flot/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-flot</artifactId>
    <version>0.0.16</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-flot/
implementation 'org.webjars.bower:angular-flot:0.0.16'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-flot/
implementation ("org.webjars.bower:angular-flot:0.0.16")
'org.webjars.bower:angular-flot:jar:0.0.16'
<dependency org="org.webjars.bower" name="angular-flot" rev="0.0.16">
  <artifact name="angular-flot" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-flot', version='0.0.16')
)
libraryDependencies += "org.webjars.bower" % "angular-flot" % "0.0.16"
[org.webjars.bower/angular-flot "0.0.16"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

angular-flot

Bower npm License

An Angular directive that wraps Flotcharts.

Installation

This library is provided as a Bower component and NPM module:

  • Bower: bower install angular-flot
  • NPM: npm install angular-flot

How to Use

First, make sure to add Flotchart to your project, as explained in Flotchart's ReadMe since we don't bundle Flotcharts for you.

Add angular-flot to the list of dependencies in your Angular.JS application:

angular.module('myapp', [
    'ngRoute',
    // ...
    'angular-flot'
]);

In your controller, create two variables to hold the dataset and Flot chart options:

angular.module('myapp').controller('MyController', function ($scope) {
    $scope.myData = [];
    $scope.myChartOptions = {};
});

In your view or template, add the flot directive, making sure to specify both the dataset and options attributes, pointing to the scope variables defined above:

<flot dataset="myData" options="myChartOptions"></flot>

The Flot chart is created in a div element as a child of the flot directive. To select the DOM element using jQuery, just do as follows (you might have to adjust the example based on the contents of your page):

$('flot > div');

Reference

Directive attributes:

  • dataset: Name of a variable defined in the current $scope to be used as input dataset. See https://github.com/flot/flot/blob/master/API.md#data-format for more information.
  • options: Name of an object defined in the current scope used to configure the chart. See https://github.com/flot/flot/blob/master/API.md#plot-options for more information.
  • on-plot-click: callback function for the 'plotclick' event.
  • on-plot-hover: callback function for the 'plothover' event.
  • on-plot-selected: callback function for the 'plotselected' event.
  • width: Chart width, e.g.: "100%" or "350px".
  • height: Chart height, e.g.: "100%" or "100px".
  • callback: callback function with flot object.
org.webjars.bower

Develer

Technology to bring your ideas to life

Версии библиотеки

Версия
0.0.16
0.0.15
0.0.14
0.0.6