Search code examples
javascriptchartsgoogle-visualization

how to show multiple tooltip on google stacked bar chart


i'm new to google chart.

i need to show multiple tooltips on google stacked chart.

i'm used this stacked bar chart chart :- https://developers.google.com/chart/interactive/docs/gallery/barchart

i have a problem show only one value:- click

i need to show tooltip like :- Click


Solution

  • Try to add focusTarget

        var options = {
            width: 600,
            height: 400,
            focusTarget: 'category', // try to add
            legend: { position: 'top', maxLines: 3 },
            bar: { groupWidth: '75%' },
            isStacked: true
          };
    

    Please Check For More:- https://developers.google.com/chart/interactive/docs/customizing_tooltip_content