Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/ava

Package Overview
Dependencies
Maintainers
64
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/ava

A framework for automated visual analytics.

  • 3.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
529
increased by104.25%
Maintainers
64
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 15 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc