Skip to content

scatter3D只有一个数据时没有显示tooltip #543

Description

@q888710631

只有一个点位数据时不显示tooltip,多于一个点位时正常

image

$.get(
  ROOT_PATH + '/data/asset/data/life-expectancy-table.json',
  function (data) {
    option = {
      tooltip: {},
      xAxis3D: {
        type: 'value',
        name: 'X',
        min: 0,
        max: 300,
        interval: 100,
        axisLabel: {}
      },
      yAxis3D: {
        type: 'value',
        name: 'Y',
        min: 0,
        max: 300,
        interval: 100,
        axisLabel: {}
      },
      zAxis3D: {
        type: 'value',
        name: 'Z',
        min: 0,
        max: 300,
        interval: 100,
        axisLabel: {}
      },
      grid3D: {},
      series: [
        {
          name: 'point',
          type: 'scatter3D',
          data: [
            [0, 0, 0],
            [100, 150, 200]
          ],
          itemStyle: {
            color: 'red',
            borderColor: 'white',
            borderWidth: 1
          }
        }
      ]
    };
    myChart.setOption(option);
  }
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions