2017-02-15 18 views
0

私は複数の軸を持つチャートを作成しました。 x軸は、最小時間が「秒」の日付です。 問題は、同時に1つのバルーンだけが表示されることです。すべてのバルーンが表示されます。 (その場合は - > 2)AmCharts:すべてのバルーンをチャートからx軸に表示

日のdataProviderのプロパティ:d.date(新しい日付(年、MM、DD、HH、MM、SS、0);

... 
valueAxes.push({ 
         "id": "v" + i, 
         "axisColor": '#' + farbcode[i], 
         "axisThickness": 2, 
         "offset": offset, 
         "gridAlpha": 0, 
         "axisAlpha": 1, 
         "position": pos 
        }); 
... 
graphs.push({ 
         "valueAxis": "v" + i, 
         "lineColor": valueAxes[i].axisColor, 
         "bullet": "round", 
         "balloonText": "<span style='font-size:13px;'><b>[[value]]</b><br>[[dateformated]]</span>", 
         "bulletBorderThickness": 1, 
         "hideBulletsCount": 30, 
         "title": window.bezei[i], 
         "valueField": window.bezei[i], 
         "fillAlphas": 0 
        }); 
... 


window.chart = AmCharts.makeChart(chartid[0].id, { 
        "type": "serial", 
        "theme": "light", 
        "legend": { 
         "useGraphSettings": true 
        }, 
        "dataProvider": chartData, 
        "valueAxes": valueAxes, 
        "graphs": graphs, 
        "synchronizeGrid": true, 
        "chartScrollbar": {}, 
        "chartCursor": { 
         "cursorPosition": "mouse" 
        }, 
        "categoryField": "date", 
        "categoryAxis": { 
         "minPeriod": "ss", 
         "parseDates": true, 
         "axisColor": "#DADADA", 
         "minorGridEnabled": true 
        }, 
        "export": { 
         "enabled": true, 
         "dateFormat": "YYYY-MM-DD HH:NN:SS", 
         "position": "bottom-right" 
        } 
       }); 

enter image description here enter image description here

+0

(http://jsfiddle.net/2xrcjpfw/)。あなたの問題を再現するフィドルを提供できますか? – xorspark

答えて

0

I'veは私の問題を発見した。

を、私は、各変数のための私のchartData []内の要素を追加しました。

私はこの2を結合する必要があり要素。あなたのコードは[私のバイオリンに]私の作品

enter image description here

関連する問題