@antv/ava
TypeScript icon, indicating that this package has built-in type declarations

3.4.1 • Public • Published

English | 简体中文

@antv/ava

A framework for automated visual analytics.

MIT License Language NPM Package NPM Downloads

Introduction

@antv/ava is the core JS package of AVA, which contains four main modules:

  • data (Data Processing): Data Processing Module. Used for statistical analysis and processing of datasets.
  • insight (Auto Insight): Automatic Insights Module. Automatically discover data insights from multi-dimensional data.
  • ckb (Chart Knowledge Base): Chart Knowledge Base Module. Based on empirically derived knowledge and observations about the various fundamentals of visualization and charts, it is the cornerstone of intelligent chart recommendations.
  • advisor (Chart Recommendation): Chart Recommendation Module. Recommend chart types and specific chart detail settings based on data and analysis needs, as well as chart optimization for existing charts.

Installation and Usage

Installation can be done via npm or the yarn package manager.

# npm
$ npm install @antv/ava --save

# yarn
$ yarn add @antv/ava

The following is a practical example of how the four main modules of @antv/ava can be used:

import { DataFrame, getInsights, ckb, Advisor } from '@antv/ava';

// input data
const data = [
  { price: 38, type: 'A' },
  { price: 52, type: 'B' },
  { price: 61, type: 'C' },
  { price: 145, type: 'D' },
  { price: 49, type: 'E' },
];

// 1. Data Processing Module
const df = new DataFrame(data);
const dataInfo = df.info();

// 2. Automatic Insights Module
const { insights } = getInsights(data);

// 3. Chart Knowledge Base Module
const myCkb = ckb();

// 4. Chart Advisor
const chartAdvisor = new Advisor();
// recommend charts and give optimization suggestions based on input data
const results = chartAdvisor.advise({ data });

For more examples, please refer to: AVA Site

Contribution PRs Welcome

We welcome all contributions. Please read our Contributing Guide first. You can submit any ideas as pull requests or as GitHub issues. Let's build a better AVA together.

More at Wiki: Development.

Package Sidebar

Install

npm i @antv/ava

Weekly Downloads

278

Version

3.4.1

License

MIT

Unpacked Size

1.32 MB

Total Files

534

Last publish

Collaborators

  • xuying1027
  • lvisei
  • yisi.wang
  • basketduck
  • biupiubiupiu
  • flash1
  • dreammy23
  • laixingui.lxg
  • zhangjunjie-loki
  • rainy25ghz
  • zeyuwang
  • yanxiong
  • susiwen8
  • freestyle21
  • soundquiet
  • elaine.q.10
  • sturuby
  • sakuya223
  • serializedowen
  • xdzhao
  • yangzhanmei
  • wjgogogo
  • leungwensen
  • dori
  • iaaron
  • yard
  • simaq
  • dxq613
  • intchous
  • susan_ann
  • jinke.li
  • lzxue
  • army8735
  • atool
  • baizn
  • dengfuping
  • neoddish
  • jeffy2012
  • zqlu
  • afc163
  • pomelo-nwu
  • kopiluwaky
  • ccnuzindex
  • panyuqi
  • bubkoo
  • zengyue
  • kasmine
  • boyu.zlj
  • l1ud0ngq1
  • newbyvector
  • winniexing
  • chenluli
  • kn9117
  • xdddst
  • semious2020
  • esora
  • nadia_liu
  • bbsqq
  • mxz96102
  • openwayne
  • pearmini
  • pddpd
  • yiqianyao
  • zhanba
  • cxxxxxn