chartist-plugin-pointlabels

WebJar for chartist-plugin-pointlabels

Лицензия

Лицензия

Группа

Группа

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

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

chartist-plugin-pointlabels
Последняя версия

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

0.0.6
Дата

Дата

Тип

Тип

jar
Описание

Описание

chartist-plugin-pointlabels
WebJar for chartist-plugin-pointlabels
Ссылка на сайт

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

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

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

https://github.com/gionkunz/chartist-plugin-pointlabels

Скачать chartist-plugin-pointlabels

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

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

Зависимости

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

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

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

Point Labels plugin for Chartist.js

This is a simple plugin for Chartist.js that will put a label on top of data points on line charts. This plugin serves as an example plugin package and can be used as starting point to create your own awesome Chartist.js plugin.

Please visit http://gionkunz.github.io/chartist-js/plugins.html for more information.

Download

The easiest way to get started, using Bower

bower install chartist-plugin-pointlabels --save

Available options and their defaults

var defaultOptions = {
  labelClass: 'ct-label',
  labelOffset: {
    x: 0,
    y: -10
  },
  textAnchor: 'middle',
  labelInterpolationFnc: Chartist.noop
};

Sample usage in Chartist.js

var chart = new Chartist.Line('.ct-chart', {
  labels: [1, 2, 3, 4, 5, 6, 7],
  series: [
    [1, 5, 3, 4, 6, 2, 3],
    [2, 4, 2, 5, 4, 3, 6]
  ]
}, {
  plugins: [
    ctPointLabels({
      textAnchor: 'middle',
      labelInterpolationFnc: function(value) {return '$' + value.toFixed(2)}
    })
  ]
});

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

Версия
0.0.6