Hi.
I am porting an old applications chart section from RadChart to RadHtml chart and am struggeling with how to edit serie items prior to rendering. The main problem is that since we are binding against an list of objects where some integer properties contains -1 values (which in our context means NULL/UNDEFINED). I cannot change this behaviour of the object since the system heavily rely on that fact.
When using RadChart we could "hook into" the series items in the ItemDataBound event. See example below.
How can I achieve the same thing with RadHtmlChart ?
BR
Johan
var columnInfo = _basicReportsPresenter.GetColumnInfoByName(e.ChartSeries.DataYColumn);
if
(!columnInfo.ColumnInfoAttribute.DisplayNegativeValues)
{
if
(e.SeriesItem.YValue < 0)
{
if
(_enableEmptyValues)
e.SeriesItem.Empty =
true
;
e.SeriesItem.YValue = 0;
}
}