English | 简体中文
@antv/ava
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';
const data = [
{ price: 38, type: 'A' },
{ price: 52, type: 'B' },
{ price: 61, type: 'C' },
{ price: 145, type: 'D' },
{ price: 49, type: 'E' },
];
const df = new DataFrame(data);
const dataInfo = df.info();
const { insights } = getInsights(data);
const myCkb = ckb();
const chartAdvisor = new Advisor();
const results = chartAdvisor.advise({ data });
For more examples, please refer to: AVA Site
Contribution
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.