PDA

View Full Version : Pie chart automatically highlight largest segment



leejwright
29 Sep 2015, 1:27 PM
Is there a way to programmatically select a segment on a pie chart upon rendering?
I need to grab and highlight the largest segment so I can feed that data to other components on the page.
I see examples where clicking one thing triggers a highlight in a bar chart but this isnt what I need.

Thanks in advance

Lee

slemmon
7 Oct 2015, 11:03 AM
You can use the highlightItem method from the series:
http://docs.sencha.com/extjs/4.2.3/#!/api/Ext.chart.series.Pie-method-highlightItem

v38

leejwright
7 Oct 2015, 12:05 PM
Perfect!Thank you