I've implemented a VueJS wrapper for Google Charts called vue-google-charts and I'm looking to solve a tool tip scenario.
I'm looking to customize a PieChart
tooltip by leveraging toolip: {isHtml: true}
which is set here in this options directive, :options="chartDonutOptions"
.
The data looks as such:
chartDonutData: [
['Stage', 'Percent', 'Tooltip'],
['Data 1, null, ''],
['Data 2, null, ''],
['Data 3, null, ''],
['Data 4, null, ''],
['Data 5, null, '']
]
Note the empty strings on position 2 after null
. When I make an API call to update this object, I assign values to both the null
and empty string
positions. However, when I update string values into those areas, I cannot get them to display when I interact with each slice of the pie.
Only position 0 and 1 of the array displays:
Data 1
15.743 (15.7%)
I expect position 0, 1 and 2 of each row to display:
Data 1
15.743 (15.7%)
My updated string here!
In my searches, a lot of comments suggest on assigning a role to the column.
I'm curious on how you set that with respect to VueJS/vue-google-charts. Please advise!