Good afternoon,
I have created a pie chart based on a ViewModel that contains:
int OperatorId,
string OperatorName,
int OperatorTotal
The chart series is created with a click event as:
.Series(series => series .Pie(model => model.OperatorTotal, model => model.OperatorName) .ColorField("Color") .Padding(0) )
.Events(events => events.SeriesClick("onPieChartClick"))
I can access e.series.name and e.category in the click event which gives me the OperatorName, but I really need the OperatorId.
Is there a way that I can group the pie chart by Id but display the name, or pass the Id in the click event?
Many thanks
Richard