Not implemented serialization for type: Single

Sep 9, 2013 at 4:04 PM
Edited Sep 10, 2013 at 7:07 AM
Hi,

I'm trying to pass float values from a datatable into the chart but I'm getting errors although I've converted them into an object array
object[] objectArray = MyDataTable.AsEnumerable().Select(row => (object)row["ColumnName"]).ToArray();

.SetSeries(new Series
{
 Data = new Data(objectArray)
});
Sep 10, 2013 at 7:06 AM
Problem solved! I converted float values to double and saved them in an object array and it worked like a charm. I guess float values are not supported in dotnethighcharts.
objectArray[Index] = System.Convert.ToDouble(MyDataTableRow.MyField);
Marked as answer by Vangi on 10/24/2013 at 5:37 AM