Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
q888710631 opened this issue Nov 21, 2024 · 0 comments
Open

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

q888710631 opened this issue Nov 21, 2024 · 0 comments

Comments

@q888710631
Copy link

只有一个点位数据时不显示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);
  }
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant