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 不支持双 band 轴 #1841

Closed
zamhown opened this issue Dec 27, 2023 · 0 comments
Closed

[Bug] dimension tooltip 不支持双 band 轴 #1841

zamhown opened this issue Dec 27, 2023 · 0 comments
Assignees
Milestone

Comments

@zamhown
Copy link
Member

zamhown commented Dec 27, 2023

目前只能识别到一个 band 轴

img_v3_0268_657b40a4-7dfe-49c6-9ce7-b1afc689594g

const spec = {
  type: 'line',
  data: [
    {
      id: 'line0',
      values: [
        { x: 'Round 1', y: 21, c: 'Role A' },
        { x: 'Round 2', y: 28, c: 'Role A' },
        { x: 'Round 3', y: 22, c: 'Role A' },
      ]
    },
     {
      id: 'line1',
      values: [
        { x: 'Round A', y: 38, c: 'Role B' },
        { x: 'Round B', y: 45, c: 'Role B' },
        { x: 'Round C', y: 56, c: 'Role B' },
      ]
    }
  ],
  legends: {
    visible: true,
    orient: 'bottom'
  },
  axes: [
    {
      orient: 'left',
      max: 100,
    },
    {
      orient: 'bottom',
      seriesIndex:[0]
    },
    {
      orient: 'top',
      seriesIndex:[1]
    }
  ],
  series:[
    {type: "line", dataIndex:0, id:'line0',tooltip:{}},
    {type: "line", dataIndex:1, id:'line1',tooltip:{}}
  ],
  xField: 'x',
  yField: 'y',
  seriesField: 'c',
};
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderAsync();
// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
@zamhown zamhown self-assigned this Dec 27, 2023
@xiaoluoHe xiaoluoHe added this to the v1.8.3 milestone Dec 27, 2023
@zamhown zamhown mentioned this issue Dec 28, 2023
20 tasks
@xile611 xile611 closed this as completed Jan 2, 2024
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

3 participants