Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 862 Bytes

CONTRIBUTING.md

File metadata and controls

50 lines (35 loc) · 862 Bytes

Contribute Guide

Choose an extension

$ cd ava

Install Dependencies

$ npm install

Start Development Server

$ npm run dev

Add a test

Create a file in ./__tests__/plots named as [data]-[mark]-[description], such as alphabet-auto-basic.ts.

- __tests__
  - alphabet-auto-basic.ts
  - index.ts

Then expose a function named as the camel case of the filename, which returns a G2 options, such as:

import { Auto } from "../../src";

export function AlphabetAutoBasic() {
  return {
    type: Auto,
    data: { type: "fetch", value: "data/alphabet.csv" },
  };
}

Then register this case in ./__tests__/index.ts:

export { AlphabetAutoBasic } from "./alphabet-auto-basic";

Open the browser, navigate to http://127.0.0.1:8080/ and choose AlphabetAutoBasic to preview.