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]: Carbon TreeChart: on collapse of the root parent node , the tree is getting disappear #1922

Open
1 of 6 tasks
dgantait opened this issue Nov 28, 2024 · 0 comments
Open
1 of 6 tasks

Comments

@dgantait
Copy link

dgantait commented Nov 28, 2024

Relevant package(s)

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

Carbon Charts Version

1.22.4

Which bundler are you using?

None (UMD)

What happened and what did you expect to happen?

We are using @carbon/charts-react : Tree chart . When we click the root parent node , the tree is getting collapsed but the chart is getting disappear.

Below is the sample data.js file .

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

export default [
  {
    name: 'analytics',
    children: [
      {
        name: 'cluster',
        children: [
          {
            name: 'AgglomerativeCluster',
            value: 3938
          },
          {
            name: 'CommunityStructure',
            value: 3812
          },
          {
            name: 'HierarchicalCluster',
            value: 6714
          },
          {
            name: 'MergeEdge',
            value: 743
          }
        ]
      },
      {
        name: 'graph',
        children: [
          {
            name: 'BetweennessCentrality',
            value: 3534
          },
          {
            name: 'LinkDistance',
            value: 5731
          },
          {
            name: 'MaxFlowMinCut',
            value: 7840
          },
          {
            name: 'ShortestPaths',
            value: 5914
          },
          {
            name: 'SpanningTree',
            value: 3416
          }
        ]
      },
      {
        name: 'optimization',
        children: [
          {
            name: 'AspectRatioBanker',
            value: 7074
          }
        ]
      }
    ]
  }
]

JavaScript console or build output (if relevant)

StackBlitz repro

No response

IBM Application/Team (if relevant)

No response

What priority level would this be in your opinion?

P0 (Critical)

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