[英]How to add tooltip background in google chart
Have you tried to apply for the div.google-visualization-tooltip
class ? 您是否尝试过div.google-visualization-tooltip
类?
And I think you have to also enable the isHtml option on the tooltip 而且我认为您还必须在工具提示上启用isHtml选项
var chart_options = {
title: 'London Olympics Medals',
colors: ['#FFD700', '#C0C0C0', '#8C7853'],
tooltip: { isHtml: true }
};
https://developers.google.com/chart/interactive/docs/customizing_tooltip_content#customizing-html-content https://developers.google.com/chart/interactive/docs/customizing_tooltip_content#customizing-html-content
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.