我正在使用zoomcharts api在饼状图中进行钻取,它似乎在所有浏览器上都工作得很好,除了safari,点击几下后崩溃。我使用的基本配置如下:
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 }
});
我们无法用这些基本设置在Safari上重现这种崩溃。ZoomCharts 1.8.0已经发布。请确认问题是否仍然存在。
也检查如果你遇到同样的崩溃在我们的网站与这些设置:https://zoomcharts.com/developers/en/pie-chart/examples/data-sources/preloaded.html
如果您的网站只出现崩溃,那么请提交其他信息,如您在网站中使用的其他库