How to use the @antv/g2plot.Area function in @antv/g2plot

To help you get started, we’ve selected a few @antv/g2plot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github antvis / G2Plot / examples / area / basic / demo / slider.js View on Github external
.then((data) => {
    const areaPlot = new Area(document.getElementById('container'), {
      title: {
        visible: true,
        text: '基础面积图 - 缩略轴',
      },
      data,
      xField: '城市',
      xAxis: {
        visible: true,
        autoHideLabel: true,
      },
      yField: '销售额',
      interactions: [
        {
          type: 'slider',
          cfg: {
            start: 0.5,
github antvis / G2Plot / examples / line / basic / demo / area.js View on Github external
.then((data) => {
    const areaPlot = new Area(document.getElementById('container'), {
      data,
      width: 700,
      height: 500,
      padding: 'auto',
      xField: 'Date',
      yField: 'scales',
      xAxis: {
        type: 'dateTime',
        tickCount: 5,
      },
    });

    areaPlot.render();
  });
github antvis / G2Plot / examples / area / basic / demo / scrollbar.js View on Github external
.then((data) => {
    const areaPlot = new Area(document.getElementById('container'), {
      title: {
        visible: true,
        text: '基础面积图 - 滚动条',
      },
      data,
      xField: '城市',
      xAxis: {
        visible: true,
        autoHideLabel: true,
      },
      yField: '销售额',
      interactions: [
        {
          type: 'scrollbar',
          cfg: {},
        },
github SmallRuralDog / laravel-vue-admin / resources / js / components / antv / AntvArea.vue View on Github external
mounted() {
    this.antv = new Area(this.attrs.canvasId, {
      data: this.attrs.data,
      ...this.attrs.config
    });

    this.antv.render();
  },
  updated() {