在 amCharts 面积图中,是否可以为类似于下面的指南添加气球?需求是当用户将鼠标悬停在垂直线上时显示有关垂直线的更多信息。
最佳答案
是的,可以。您应该将气球文本添加到指南对象,不像您所做的那样,而是像这样:
"guides": [{
category: "2001",
toCategory: "2003",
lineColor: "#CC0000",
lineAlpha: 1,
fillAlpha: 0.2,
fillColor: "#CC0000",
dashLength: 2,
inside: true,
labelRotation: 90,
label: "fines for speeding increased",
"balloonText": "<img src='http://www.amcharts.com/lib/3/images/car.png' style='vertical-align:bottom; margin-right: 10px; width:28px; height:21px;'><span style='font-size:14px; color:#000000;'><b>asaassssss</b></span>",
}, {
category: "2007",
lineColor: "#CC0000",
lineAlpha: 1,
dashLength: 2,
inside: true,
labelRotation: 90,
label: "motorcycle fee introduced"
}]
关于javascript - 如何为 amCharts 指南添加悬停?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27530456/