jui-chart

WebJar for jui-chart

Лицензия

Лицензия

MIT
Категории

Категории

JavaScript Языки программирования Github Инструменты разработки Контроль версий
Группа

Группа

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

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

github-com-juijs-jui-chart
Последняя версия

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

2.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

jui-chart
WebJar for jui-chart
Ссылка на сайт

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

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

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

https://github.com/juijs/jui-chart

Скачать github-com-juijs-jui-chart

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

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

Зависимости

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

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

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

Installation

NPM

npm install juijs-chart

Browser

<script src="../dist/vendors.js"></script>
<script src="../dist/jui-chart.js"></script>

ES Modules

The difference with the existing method is that you need to add the module directly using the 'use' function.

import graph from 'juijs-chart'
import BarBrush from 'juijs-chart/src/brush/bar.js'
import ColumnBrush from 'juijs-chart/src/brush/column.js'
import TitleWidget from 'juijs-chart/src/widget/title.js'

graph.use(BarBrush, ColumnBrush, TitleWidget);

Usage

<div id="chart"></div>

The UI component creation code is the same as the existing one.

graph.ready([ "chart.builder" ], function(builder) {
    var obj = builder("#chart", {
        width: 600,
        height : 600,
        theme : "classic",
        axis : {
            x : {
                type : "block",
                domain : "quarter",
                line : true
            },
            y : {
                type : "range",
                domain : function(d) { return [d.sales, d.profit ]; },
                step : 3,
                line : true,
                orient : "right"
            },
            data : [
                { quarter : "1Q", sales : 1, profit : 3 },
                { quarter : "2Q", sales : 3, profit : 2 },
                { quarter : "3Q", sales : 10, profit : 1 },
                { quarter : "4Q", sales : 0.49, profit : 4}
            ]
        },
        brush : [{
            type : "column",
            target : [ "sales", "profit" ]
        }],
        widget : [{
            type: "title",
            text: "hihi"
        }]
    });
});
org.webjars.bower

JUI Framework

JUI is HTML5 based UI Framework. Support many components, SVG charts and fast grid.

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

Версия
2.0.3