It is pretty straight forward, there are plenty of references to using:
In this forum as well as others. "dataItem" doesn't return as undefined, but any member I specify does. In the example above I am using resp_name, which is in the data. Even if I try to use resp_id, which is what shows if I use series.name instead. Basically, anything I put after dataItem returns as undefined. Any ideas??
@(Html.Kendo().Chart(Model.oeeList) .Name("widget-oee-breakdown") .Theme("black") .DataSource(ds => ds .Group(group => group.Add(model => model.resp_id)) ) .Series(series => { series.Column <double?, string> (model => model.total, categoryExpression: model => model.area_name).Color("White").Name("Downtime").Labels(labels => labels.Visible(false).Format("{0:n2}")).Stack(true); }) .ChartArea(ca => ca .Background("transparent") ) .CategoryAxis(axis => axis .MajorGridLines(lines => lines.Visible(false)) .Labels(model => model.Rotation(90)) ) .Legend(legend => legend .Visible(false) ) .ValueAxis(axis => axis .Numeric() .Max(100) .Line(line => line.Visible(false)) .MajorGridLines(lines => lines.Visible(false)) .Labels(false) ) .Tooltip(tooltip => tooltip .Visible(true) .Template("#= dataItem.resp_name #: #= kendo.format('{0:n2}', value) #") ))