question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stacked Bar Chart custom attributes?

See original GitHub issue

Hi,

I’m having a stacked bar chart, and on hover I want a list of names to appear in the tooltip.

I found a solution that works with jquery / pure javascript but it somehow doesn’t in react.

in my data array I have something like:

{
                names: ['Test, Test, Test'],
                name: d.name,
                data: this.calculateForDescriptor( d ),
                color: d.color
}

And my tooltip formatter:

tooltip: {
                formatter: function() {
                    var result = `Names`;
                   // in here I can't access the names attribute, but every other attribute.
                    return result;
                }
},

Any idea why I can’t access the names attribute?

Thanks a lot! David

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
paufabregatcommented, Feb 14, 2017

I found the solution to this mentioned in a couple of issues from the highcharts repo: https://github.com/highcharts/highcharts/issues/5263 https://github.com/highcharts/highcharts/issues/4258 In short, disable dataGrouping! Hope it helps @rizkiandrianto

0reactions
rizkiandriantocommented, Feb 14, 2017

Thanks @paufabregat will check it later…

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Complete Guide to Stacked Bar Charts | Tutorial by Chartio
Stacked bar charts extend the standard bar chart by dividing each bar into multiple subcategories. Learn how to best use this chart type...
Read more >
Stacked Bar Chart in SSRS - Tutorial Gateway
In this article we show you, How to create a Stacked Bar Chart in SSRS, How to change the Chart Title, Legend Position,Stacked...
Read more >
8 How to Create a Stacked Bar Chart
Editing Chart Attributes · Click Edit Page 2 on the Developer toolbar. · Under Regions, click Flash Chart. · Under Chart Settings, edit...
Read more >
Stacked Column 2D - Chart Attributes | FusionCharts
See all attributes. Revenue (In USD) $0 $50K $100K $150K ... Stacked Column 2D chart attributes. Functional Attributes. These attributes let you control...
Read more >
Stacked Bar Chart Attributes - Froala
Using paletteColors attribute, you can specify your custom list of hex colors for the data items. The list of colors have to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found