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]: Legend tool tip doesn't work when there's a single group #1890

Open
1 of 6 tasks
Vkrishnasree opened this issue Sep 10, 2024 · 1 comment
Open
1 of 6 tasks

Comments

@Vkrishnasree
Copy link

Relevant package(s)

  • @carbon/charts
  • @carbon/charts-svelte
  • @carbon/charts-react
  • @carbon/charts-angular
  • @carbon/charts-vue
  • Documentation website

Carbon Charts Version

1.14.1

Which bundler are you using?

None (UMD)

What happened and what did you expect to happen?

When there's only a single group in dataset, and legend name is long and truncated, tool tip doesn't appear on hovering over legend.
When there's multiple groups in the dataset, tooltip works as expected on hovering

Chart data and options (automatically formatted so no need for backticks)

export default {
  title: 'Vertical stacked bar (time series)',
  axes: {
    left: {
      mapsTo: 'value',
      stacked: true
    },
    bottom: {
      mapsTo: 'date',
      scaleType: 'time'
    }
  },
  height: '400px'
}


export default {
  title: 'Vertical stacked bar (time series)',
  axes: {
    left: {
      mapsTo: 'value',
      stacked: true
    },
    bottom: {
      mapsTo: 'date',
      scaleType: 'time'
    }
  },
  height: '400px'
}

JavaScript console or build output (if relevant)

No response

StackBlitz repro

https://stackblitz.com/edit/aaqy1h?file=data.js,options.js

IBM Application/Team (if relevant)

No response

What priority level would this be in your opinion?

P3 (Low)

@chrisdudley
Copy link

possibly dupe of #1885 (or at least related) ?

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

2 participants