Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
调用 drawchart 函数后,如何获取 Zoomcharts 的 PieChart 的特定切片颜色。
有没有什么方法可以给我当前的切片颜色。
打电话chart.getActivePies();
chart.getActivePies()
该对象将包含活动饼图的数组。在每个饼图对象中,您将拥有allSlices切片对象数组。每个切片对象都有一个属性currentFillColor,其中包含您需要的值。
allSlices
currentFillColor