antvis/G2

Do you want to work on this issue?

You can request for a bounty in order to promote it!

FacetRect 配置 title 不符合预期 #4576

pearmini posted onGitHub

分面设置了 mark.axis.x.title 的时候 title 会多次出现。

image

export function anscombePointFacetRectRow(): G2Spec {
  return {
    type: 'facetRect',
    width: 928,
    height: 270,
    paddingBottom: 50,
    data: {
      type: 'fetch',
      value: 'data/anscombe.csv',
    },
    encode: {
      x: 'series',
    },
    children: [
      {
        type: 'point',
        inset: 10,
        encode: {
          x: 'x',
          y: 'y',
        },
        style: {
          stroke: '#000',
        },
        axis: { x: { title: 'X' } }, // 配置代码
      },
    ],
  };
}

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests