1
我的圖表不顯示氣球,我不明白爲什麼。我在y光標上顯示氣球,我可以將其更改爲顯示x軸的值,但我無法顯示氣球,它會在x光標或值行之後的氣球中顯示x軸值。Amcharts XY圖表不顯示氣球
AmCharts.makeChart("chartdiv",
{
"type": "xy",
"pathToImages": "http://cdn.amcharts.com/lib/3/images/",
"startDuration": 1.5,
"handDrawn": true,
"theme": "light",
"thousandsSeparator": "'",
"chartCursor": {
"categoryBalloonEnabled": true,
"valueLineAxis": "ValueAxis-1",
"valueLineBalloonEnabled": true,
"valueLineEnabled": true,
"balloonText": "[[Distance (m)]]",
"showBalloon": true,
"zoomable": false
},
//"trendLines": [],
"color":"#777777",
"fontFamily":"Londrina Outline",
"fontSize":23,
"categoryField": "Distance (km)",
"graphs": [
{
"id": "AmGraph-4",
"balloonText": "[[Distance (m)]]",
"title": "graph 4",
"valueAxis": "Not set",
"lineColor": "#59C45C",
"lineThickness": 3,
"fillAlphas": 0.13,
"fillColors": "#59C45C",
"fillToAxis": "ValueAxis-2",
"valueField": "Distance (km)",
"xAxis": "Distance (km)",
"xField": "Distance (km)",
"yField": "Elevation (m)"
}
],
"valueAxes": [
{
"id": "ValueAxis-1",
"axisAlpha": 0,
"unit": "m"
},
{
"id": "ValueAxis-2",
"position": "bottom",
"axisAlpha": 0,
"unit": "km",
"showLastLabel": false
}
],
"allLabels": [],
"amExport": {},
"balloon": {},
"titles": [],
"dataProvider": [
{
"Distance (m)": "0",
"Distance (km)": "0",
"Elevation (m)": "749"
},
{
"Distance (m)": "101.543639516933",
"Distance (km)": "0.11",
"Elevation (m)": "749"
},
{ and many more like that ...},
謝謝。它真的讓我噁心。我在這些配置文件中看不到任何東西... – Samuel 2014-11-25 12:58:08
請記住,在XY圖表中激活項目符號會減慢整個圖表的速度,例如在放大時。 我試圖找到一種方法有選擇地或以縮放級別顯示子彈以避免性能下降。 – 2014-11-25 16:15:33