Umang Prajapati
Umang Prajapati

Reputation: 17

How can I get slice colors of piechart in ZoomCharts?

After call drawchart function, how can i get particular slice color of PieChart of Zoomcharts.

Is there any method that give me current color of Slice.

Upvotes: 0

Views: 40

Answers (1)

jancha
jancha

Reputation: 4977

Call chart.getActivePies();

This object will contain array of the active pies. In each pie object you will have allSlices array of slice objects. Each slice object has a property currentFillColor which contains the values that you need.

Upvotes: 0

Related Questions