Skip to content

[Bug] xAxis type time, showMinLabel=false not work #16888

@MeetzhDing

Description

@MeetzhDing

Version

5.3.2

Link to Minimal Reproduction

No response

Steps to Reproduce

var option;

let base = +new Date(1988, 9, 3);
let oneDay = 24 * 3600 * 1000;
let data = [[base, Math.random() * 50]];
for (let i = 1; i < 20000; i++) {
  let now = new Date((base += oneDay));
  data.push([+now, Math.round((Math.random() - 0.5) * 20 + data[i - 1][1])]);
}

const baseOption = {
  grid: {
    left: 5,
    containLabel: true,
  },
  tooltip: {
    trigger: 'axis',
    appendToBody: true,
    position: function (pt) {
      return [pt[0], '10%'];
    },
  },
  xAxis: {
    type: 'time',
    boundaryGap: false,

    axisLabel: {
      showMinLabel: false,
      showMaxLabel: false,
      hideOverlap: true,
      // formatter: null,
    },
  },
  yAxis: {
    type: 'value',
    boundaryGap: [0, '100%'],
  },
};

option = ({
  ...baseOption,
  series: [
    {
      name: 'Series1',
      type: 'line',
      smooth: false,
      symbol: 'circle', //'none',
      symbolSize: 7,
      lineStyle: {
        width: 1,
      },
      data: data.slice(0, 10),
      stack: 'Total',
    },
  ],
})

Current Behavior

image

Expected Behavior

hide min label when xAxis type is time

Environment

- OS: MacOS
- Browser: Chrome 100
- Framework: any

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.waiting-for: community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions