HighChart Setting xAxisItem

Apr 11, 2014 at 4:27 PM
Edited Apr 11, 2014 at 4:28 PM
I am trying to set xAxisItem(categories) dynamically from the database. In order to do this, I have created a list as follows in c#
     List<XAxisItem> xAxisItems = new List<XAxisItem>();
and then I am looping through and adding the values to xAxisItems list as follows -
    xAxisItems.Add(new XAxisItem { categories = new[] { dt.Rows[i]["column"].ToString() } });
I am able to successfully populate the list with all the xAxis values but unable to assign this list to xAxis using the following command
Any help will be appreciated Thanks