Skip to content

The label options never work on the "Scatter on Single Axis" #15830

@Camille0512

Description

@Camille0512

Version

5.2.0

Steps to reproduce

option = {
  title: {
    textBaseline: 'middle',
    text: "Test",
    top: "center"
  },
  singleAxis: {
    left: 150,
    type: 'category',
    boundaryGap: false,
    top: "center",
    data: ["a", "b", "c", "d", "e"],
  },
  series: [{
    // singleAxisIndex: 0,
    coordinateSystem: 'singleAxis',
    type: 'scatter',
    data: [
      {
        value: [0, 5], 
        itemStyle: {opacity: 0.15, label: {show: true, color: "black"}},
        label: {show: true, backgroundColor: "white"}
      }, {
        value: [1, 10],
        label: {show: true, backgroundColor: "white"}
      }, {
        value: [2, 15],
        itemStyle: {color: "orange", opacity: 0.15, label: {show: true, color: "black"}},
        label: {show: true, backgroundColor: "white"}
      }, {
        value: [3, 8],
        label: {show: true, backgroundColor: "white"}
      }, {
        value: [4, 15],
        label: {show: true, backgroundColor: "white"}
      }
    ],
    symbolSize: function (dataItem) {
      return dataItem[1] * 4;
    },
  }],
};

What is expected?

The label options can be easily turned on.

What is actually happening?

The label options never work on the "Scatter on Single Axis"


I am quite confused, why the label options never work on the "Scatter on Single Axis"? Do I need to use some other techniques to turn it on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishstaleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions