ant-design-charts icon indicating copy to clipboard operation
ant-design-charts copied to clipboard

🧐[问题]使用缩略图的时候,x轴刻度标签会重叠在一起

Open tangyunfeng12138 opened this issue 7 months ago • 2 comments

🧐 使用折线图,配置缩略轴之后,x轴的刻度标签会重叠在一起,拉动缩略条后会回复正常,下面是折线图的配置

💻

const lineConfig = {
  autoFit: true,
  xField: (d: { time: number }) => new Date(d.time).toLocaleTimeString(),
  slider: {
    x: {},
  },
  marginLeft: 0,
  shapeField: "smooth",
  sizeField: 2,
  axis: { x: {
    title: false,
    size: 20,
  }},
  colorField: 'type',
  scale: {
    color: {
      domain: ['0', '1', '2'],
      range: ['#3E7EFF', '#14C9C9', '#5048E5']
    }
  },
  legend: false,
}

🚑

image 移动缩略轴后恢复正常 image

tangyunfeng12138 avatar Jun 27 '24 09:06 tangyunfeng12138