如何在 google 堆积条形图上显示多个工具提示
how to show multiple tooltip on google stacked bar chart
我是 google 图表的新手。
我需要在 google 堆积图上显示多个工具提示。
我用过这个堆叠条形图图表:- https://developers.google.com/chart/interactive/docs/gallery/barchart
我有一个问题只显示一个值:- click
我需要显示如下工具提示:- Click
尝试添加focusTarget
var options = {
width: 600,
height: 400,
focusTarget: 'category', // try to add
legend: { position: 'top', maxLines: 3 },
bar: { groupWidth: '75%' },
isStacked: true
};
请检查更多:- https://developers.google.com/chart/interactive/docs/customizing_tooltip_content
我是 google 图表的新手。
我需要在 google 堆积图上显示多个工具提示。
我用过这个堆叠条形图图表:- https://developers.google.com/chart/interactive/docs/gallery/barchart
我有一个问题只显示一个值:- click
我需要显示如下工具提示:- Click
尝试添加focusTarget
var options = {
width: 600,
height: 400,
focusTarget: 'category', // try to add
legend: { position: 'top', maxLines: 3 },
bar: { groupWidth: '75%' },
isStacked: true
};
请检查更多:- https://developers.google.com/chart/interactive/docs/customizing_tooltip_content