How to use the @antv/f2.Util function in @antv/f2

To help you get started, we’ve selected a few @antv/f2 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 / F2 / examples / point / scatter / demo / bubble.js View on Github external
});
// 开始配置坐标轴
chart.axis('x', {
  label: function label(text) {
    return {
      text: text + ' gr' // 格式化坐标轴显示文本
    };
  },
  grid: {
    stroke: '#d9d9d9',
    lineWidth: 1,
    lineDash: [ 2, 2 ]
  }
});
chart.axis('y', {
  line: F2.Util.mix({}, F2.Global._defaultAxis.line, {
    top: false
  }),
  label: function label(text) {
    if (text > 0) {
      return {
        text: text + ' gr'
      };
    }
  }
});
chart.tooltip(false);
chart.point().position('x*y').color('#1890ff')
  .size('z', [ 10, 40 ])
  .shape('circle')
  .style({
    lineWidth: 1,

@antv/f2

Charts for mobile visualization.

MIT
Latest version published 1 month ago

Package Health Score

81 / 100
Full package analysis