【发布时间】:2015-08-06 11:44:04
【问题描述】:
如何将气球添加到 AmCharts Gauge? 这不可能吗?
如何向以百分比显示值的箭头添加气球工具提示?
从 AmChart 文档中复制了标记。但似乎只适用于常规图表而不是仪表。
http://docs.amcharts.com/3/javascriptcharts/AmBalloon http://docs.amcharts.com/3/javascriptcharts/AmAngularGauge
http://jsfiddle.net/shL0g1rc/2/
代码示例
var chart = AmCharts.makeChart("chartdiv", {
"type": "gauge",
"arrows": [
{
"value": 130
}
],
"titles": [
{
"text": "Speedometer",
"size": 15
}
],
"axes": [
{
"bottomText": "0 km/h",
"endValue": 220,
"valueInterval": 10,
"bands": [
{
"color": "#00CC00",
"endValue": 90,
"startValue": 0
},
{
"color": "#ffac29",
"endValue": 130,
"startValue": 90
},
{
"color": "#ea3838",
"endValue": 220,
"startValue": 130,
"innerRadius": "95%"
}
]
}
],
"balloon": {
"adjustBorderColor": true,
"color": "#000000",
"cornerRadius": 5,
"fillColor": "#FFFFFF"
}
});
【问题讨论】:
标签: javascript html graph charts amcharts