2016-11-08 4 views

답변

1

도 기능이 될 수 있습니다. 이것을 사용하면 무엇을 표시하고 표시해야하는지 완전히 제어 할 수 있습니다.

예 :

function __handleTooltip(seriesConfiguration) { 
    // Your code here  
    // return undefined, if you don't want to show a tooltip 
    // return a string, if you want to show a tooltip 
} 

seriesConfiguration 다소처럼 보이는 :

// This is a SCATTER-Entry 
// But line/bar is just similar, it just has different "data" and "value". 
{ 
    "componentType": "series", 
    "componentSubType": "scatter", 
    "seriesType": "scatter", 
    "seriesIndex": 0, 
    "seriesName": "Daten", 
    "name": "", 
    "dataIndex": 9, 
    "data": [ 
    748, 
    2206, 
    2954, 
    "999999999", 
    "Some other Value", 
    "" 
    ], 
    "value": [ 
    748, 
    2206, 
    2954, 
    "999999999", 
    "Some other Value", 
    "" 
    ], 
    "color": "rgba(79,142,206,1)", 
    "$vars": [ 
    "seriesName", 
    "name", 
    "value" 
    ] 
} 

그냥 객체를 인쇄 할 CONSOLE.LOG를 사용, 나머지는 간단합니다.