小编Ora*_*Bud的帖子

Google Charts工具提示选项

我是Javascript的新手,但我的客户希望有不同的工具提示背景,边框和文字颜色.由于我是新手,我不知道应该更改或放入代码.先感谢您!(样式用于悬停时生成的工具提示,而不是添加额外的工具提示)

google.charts.load('current', {packages: ['corechart', 'line']});
google.charts.setOnLoadCallback(drawBackgroundColor);

function drawBackgroundColor(transparent) {
var data = new google.visualization.DataTable();
data.addColumn('date', 'X');
data.addColumn('number', 'Xaurum Gold Growth');


data.addRows([
[new Date(2015 , 03 , 15),0.000125],
[new Date(2015 , 04 , 09),0.000125202590875],
[new Date(2015, 04, 12), 0.000126019393875],

]);
var options = {
hAxis: {
  title: 'Time',
  textStyle:{color: '#FFF'},
  titleTextStyle: {
color: '#fff'
}
},
vAxis: {
  title: 'Value',
  textStyle:{color: '#FFF'},
  titleTextStyle: {
color: '#fff'
}
},
legend: {
textStyle: {color: '#fff'}
},
NumberFormat: {
fractionDigits:15,
},
annotations: {
boxStyle: …
Run Code Online (Sandbox Code Playgroud)

html javascript css charts google-visualization

3
推荐指数
1
解决办法
3515
查看次数

标签 统计

charts ×1

css ×1

google-visualization ×1

html ×1

javascript ×1