rails chartkick gchart 在悬停时删除值(工具提示)
rails chartkick gchart remove value on hover (tooltip)
我正在使用 chartick 并想从悬停时的工具提示中删除单词值(下图)。所以我将使用 Thu 33,406 而不是 Thu 值:33,406
这可能吗,因为我没有直接使用 google 图表?
我最终使用了 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}”},
我正在使用 chartick 并想从悬停时的工具提示中删除单词值(下图)。所以我将使用 Thu 33,406 而不是 Thu 值:33,406
我最终使用了 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}”},