2015-07-10 192 views
0

我在餅圖中使用zoomcharts api進行鑽取,並且它似乎在所有瀏覽器上都很好,除了幾次點擊後崩潰的Safari瀏覽器。我使用的基本配置如下:Safari瀏覽器的Zoomcharts API

var data = { 
    "subvalues":[ 
    {"value":50, "name":"Apples", "subvalues":[ 
     {"value":25, "name":"Red apples"}, 
     {"value":15, "name":"Yellow apples"}, 
     {"value":10, "name":"Green apples"}]}, 
    {"value":30, "name":"Oranges", "subvalues":[ 
     {"value":10, "name":"Big oranges"}, 
     {"value":9, "name":"Small oranges"}, 
     {"value":7, "name":"Green oranges"}, 
     {"value":4, "name":"Pink oranges"}]}, 
    {"value":20, "name":"Grapes", "subvalues":[ 
     {"value":15, "name":"Sweet grapes"}, 
     {"value":5, "name":"Sour grapes"}]}, 
    {"value":50, "name":"Other fruits", style:{fillColor:"lightGray"}}] 
}; 

var t = new PieChart({ 
    container: document.getElementById("demo"), 
    area: { height: 350 }, 
    data: { preloaded: data } 
}); 

任何幫助,高度讚賞。

回答