Nexim Maxim
Nexim Maxim

Reputation: 1

DevExpress PieChart WebChartControl Hover to Highlight Piece of Pie

Is there are way to achieve highlighting of the piece of pie when user hover their mouse over the piece of pie like in Chart.Js charts?

I have looked into ClientSideEvents-ObjectHotTracked but could not find one to highlight on mouse hover.

function(s, e) { var hitInPie = e.hitInfo.inSeries; s.SetCursor(hitInPie ? 'pointer' : 'default'); }

This code is to change the mouse cursor to pointer once it touches series.

What i would like to achieve is highlighting a piece of the pie that the cursor hits. Thank you.

Upvotes: 0

Views: 293

Answers (1)

AlexK
AlexK

Reputation: 128

WebChartControl generates an image on the server side and therefore the Pie segment color cannot be modified using the client-side code only. The Pie segment highlighting feature is not supported by WebChartControl because it will require a round trip to the server.

Upvotes: 1

Related Questions