How to use the @antv/g2plot.Liquid 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 / liquid / basic / demo / percent.js View on Github external
import { Liquid } from '@antv/g2plot';

const liquidPlot = new Liquid(document.getElementById('container'), {
  title: {
    visible: true,
    text: '水波图',
  },
  description: {
    visible: true,
    text: '水波图 - 百分比显示',
  },
  statistic: 'percent',
  width: 400,
  height: 400,
  min: 0,
  max: 10000,
  value: 6640,
  showValue: true,
});
github antvis / G2Plot / examples / liquid / basic / demo / basic.js View on Github external
import { Liquid } from '@antv/g2plot';

const liquidPlot = new Liquid(document.getElementById('container'), {
  title: {
    visible: true,
    text: '水波图',
  },
  indicator: 'normal',
  width: 400,
  height: 400,
  min: 0,
  max: 10000,
  value: 6640,
  showValue: true,
});
liquidPlot.render();