echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] showMinLine and showMaxLine don't work for gauge series

Open SchnWalter opened this issue 6 months ago • 2 comments

Version

5.6.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=gauge&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmurAGbABOAtgIZhgCmFhA5EjQL6wA8ARhQHoAfEl5dCSAMYcApC2IcANMQDOTCAxWEA2sXSoSJaDSoNWABQqaVAVystlh9GACeIM7BYBzGja8MHPRIAEwYwGghsCSDDcmo6RmZPJAA3GmwbBg55J1glGNgVEGwIMAAZCGgPA1zCgAtgAHdCMApMx1qVBsaAWUqKqsJSdLUO3K6mnpoADwGPYexRgvzc4LoaHQL9LZI0jI8AVgAGMdrjU1YAZQBhAHkAJQBRHNqOAoBdILf0T44AbiAA

Steps to Reproduce

  1. Create a gauge chart:
  2. Set showMinLine and showMaxLine for splitLine to false.
    splitLine: {
      show: true,
      showMinLine: false,
      showMaxLine: false,
    },
    

Current Behavior

The max and min lines are still visible.

Expected Behavior

The max and min lines should be hidden.

Environment


Any additional comments?

I intend to try and fix the issue my self, in the mean time, I've created this issue for folks to know about it.

SchnWalter avatar Jun 05 '25 08:06 SchnWalter

Looks like there's also a problem with the axisLabel options:

axisLabel: {
  show: true,
  showMaxLabel: false,
  showMinLabel: false,
},

SchnWalter avatar Jun 05 '25 10:06 SchnWalter

why would this be a bug? Gauge series API has neither splitLine nor axisLabel definitions for showMaxLabel/showMinLabel.

helgasoft avatar Jun 06 '25 01:06 helgasoft