Ok I got it, but only in with BarChart (I think that if work in barchart
can work in the same way with Histogram):
My query is:
var query = new google.visualization.Query(tqUrl);
query.setQuery('Select B, G, C');
Where in column C I have the url image, the column C have the index 2
(start in 0) so I use:
var data = response.getDataTable();
data.setColumnProperties( 2, {
role: 'tooltip',
html: true
});
and then in chart properties:
'focusTarget': 'category',
'tooltip': {'isHtml': 'true'},
But when I replace BarChart with Histogram I get the message:
Focus target [object Object] is not supported for the chosen chart type
How can I use it with Histogram this option?
On Wednesday, 9 November 2016 19:18:25 UTC-5, Sixs wrote:
>
> I found this:
> https://developers.google.com/chart/interactive/docs/customizing_tooltip_content
> But in my case I'm getting the data from a spreadsheet. how can I set the
> 'role': 'tooltip' to my column that have the urls of the images?
>
> On Wednesday, 9 November 2016 18:35:09 UTC-5, Sixs wrote:
>>
>> How can I add an image into the label of a bar chart? I'm reading the
>> data from a spreadsheet and in one column I have the image's urls.
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/f0e47169-cd28-4968-9598-af3d366a4615%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.