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

[Bug] dimension tooltip 一个 datum 在多个 band 轴下出现多行 tooltip 内容项 #2148

Closed
zamhown opened this issue Jan 26, 2024 · 0 comments
Assignees

Comments

@zamhown
Copy link
Member

zamhown commented Jan 26, 2024

image

复现 spec:

const spec = {
  type: 'common',
  data: {
    values: [
      {
        time: '2:00',
        value: 8
      },
      {
        time: '4:00',
        value: 9
      },
      {
        time: '6:00',
        value: 11
      },
      {
        time: '8:00',
        value: 14
      },
      {
        time: '10:00',
        value: 16
      },
      {
        time: '12:00',
        value: 17
      },
      {
        time: '14:00',
        value: 17
      },
      {
        time: '16:00',
        value: 16
      },
      {
        time: '18:00',
        value: 15
      }
    ]
  },
  series: [{
    type: 'line',
    xField: 'time',
    yField: 'value'
  }],
  axes: [
    { type: 'band', orient: 'top' },
    { type: 'band', orient: 'bottom' },
    { type: 'linear', orient: 'left' },
  ]
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderAsync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
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