@antv/ava-react (original) (raw)

3.3.2 • Public • Published a year ago

language icon English | 简体中文

@antv/ava-react

Introduction

@antv/ava-react is a plug-and-play React component library based on the integration of AVA capabilities, which contains three core components:

Installation and Usage

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

npm

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

yarn

$ yarn add @antv/ava-react

The following is a practical example of how the three main components of @antv/ava-react can be used:

  1. Examples of <NarrativeTextVis/>:
    import { NarrativeTextVis } from '@antv/ava-react';
    export default () => {
    // where textSpec is of type NarrativeTextSpec
    return
    }
  2. Examples of <InsightCard/>:
    import { InsightCard } from '@antv/ava-react';
    export default () => {
    // where the insightInfo type refers to the data insight output by the insight module
    return
    }
  3. <AutoChart/> is being further upgraded, so stay tuned.

import { NarrativeTextVis } from '@antv/ava-react';

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.