How to use the @antv/g2plot.Bubble 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 / bubble / basic / demo / trendline.js View on Github external
.then((data) => {
    const bubblePlot = new Bubble(document.getElementById('container'), {
      title: {
        visible: true,
        text: '气泡图添加趋势线',
      },
      data,
      xField: 'Revenue per club[€ m]',
      yField: 'UEFA points*',
      sizeField: 'UEFA points*',
      pointSize: [4, 25],
      colorField: 'revenueGroup',
      color: ['#72302f', '#beb298', '#d18768', '#e3cda1'],
      pointStyle: {
        stroke: '#777777',
        lineWidth: 1,
        opacity: 0.9,
      },
github antvis / G2Plot / examples / bubble / basic / demo / basic.js View on Github external
.then((data) => {
    const bubblePlot = new Bubble(document.getElementById('container'), {
      title: {
        visible: true,
        text: '基础气泡图',
      },
      data,
      xField: 'change in female rate',
      yField: 'change in male rate',
      sizeField: 'pop',
      pointSize: [4, 30],
      colorField: 'continent',
      color: ['#ffd500', '#82cab2', '#193442', '#d18768', '#7e827a'],
      pointStyle: {
        stroke: '#777777',
        lineWidth: 1,
        opacity: 0.8,
      },