Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type: 'series2',
value: 390,
},
{
label: 'Fri.',
type: 'series1',
value: 170,
},
{
label: 'Fri.',
type: 'series2',
value: 100,
},
];
const barPlot = new GroupBar(document.getElementById('container'), {
title: {
visible: true,
text: '分组条形图',
},
data,
xField: 'value',
yField: 'label',
groupField: 'type',
label: {
formatter: (v) => `${v}`.replace(/\d{1,3}(?=(\d{3})+$)/g, (s) => `${s},`),
},
});
barPlot.render();