0

我正在使用chartick,并希望在悬停时从工具提示中删除单词值(下图)。所以我将有 Thu 33,406 而不是 Thu 值:33,406
在此处输入图像描述 是否有可能,因为我没有直接使用谷歌图表?

4

1 回答 1

0

我最终使用了highcharts。

<%= pie_chart $top_10_mention.reverse, adapter: "highcharts", id:"mention",  colors: "#4B83B4", download: "mention", refresh: 60,
library: { 
    style: {color: "blue", fontSize: 10},
    tooltip: {pointFormat: "<b>{point.y}</b>"},
    chartArea: {left: "2", top: "5", width: "70%", right: "30"},
    legend: { position: "right", maxLines: 10, textStyle: {color: "blue", fontSize: 10}},
    colors: ["#C2F4FF", "#82B6FF", "#ec8f6e", "#0099FF", "#F76161", "#76BDD1", "#E53434", "#005F9D", "#FFC2C2", "#5D90EC"]
  }
%>    

工具提示:{pointFormat:“ {point.y} ”},

于 2018-03-13T15:37:53.243 回答