0.2.0 • Published 1 month ago

@antv/g2-extension-plot v0.2.0

Weekly downloads
-
License
-
Repository
github
Last release
1 month ago

g2-extension-plot

The plot for @antv/g2 marks.

Getting Started

Install @antv/g2-extension-plot and @antv/g2 via package manager such NPM or Yarn.

$ npm install @antv/g2-extension-plot @antv/g2

Use mark individually:

import { Runtime, extend, corelib } from "@antv/g2";
import { plotlib } from "@antv/g2-extension-plot";

const Chart = extend(Runtime, { ...corelib(), ...plotlib() });

const chart = new Chart({ container: "container" });

  chart
    .sunburst()
    .data({
      type: 'fetch',
      value: 'https://gw.alipayobjects.com/os/antfincdn/ryp44nvUYZ/coffee.json',
    })
    .animate('enter', { type: 'waveIn' })
    .coordinate({ type: 'polar', innerRadius: 0 });

  chart.render();

License

MIT@AntV.

0.1.2

1 month ago

0.2.0

1 month ago

0.1.1

5 months ago

0.1.0

5 months ago