Cornered Fixed Width Bar Chart

Source
import { Chart } from '@antv/g2';

const chart = new Chart({
  container: 'container',
  autoFit: true,
});

chart.options({
  type: 'interval',
  data: [
    { name: 'MODIFY', value: 138, washaway: 0.21014492753623193 },
    { name: 'PRERELEASE', value: 109, washaway: 0.5596330275229358 },
    { name: 'RELEASING', value: 48, washaway: 0 },
  ],
  encode: { x: 'name', y: 'value', color: 'name', size: 80 },
  style: {
    radiusTopLeft: 10,
    radiusTopRight: 20,
    radiusBottomRight: 30,
    radiusBottomLeft: 40,
  },
});

chart.render();
Site search
Documentation and examplesType to start searching

Search documentation, APIs, and examples

SelectOpenEscClose