2016-03-04 31 views

回答

0

要禁用圖表加載上的圖表,請在圖表配置中將其設置爲hidden屬性爲true

即:

"graphs": [{ 
    // ... 
    "hidden": true 
}, ...] 

要通過API,當圖表已經內置禁用的曲線圖,使用hideGraph()方法。

即:

function hideGraphByIndex(index) { 
    chart.hideGraph(chart.graphs[ index ]); 
} 

function hideGraphById(id) { 
    chart.hideGraph(chart.getGraphById(id)); 
}