Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
});
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();