Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All.,

Does anyone know how to plot Datetime column in Kendo Scatter chart???

I have a datatable which contains datetime columns and other values(Double) and I am trying to plot those values in Kendo Scatter Chart. It is working only for double values and not for DateTime column.

I am using the following code to plot values in Kendo Scatter Chart:
C#
for (int j = 0; j < DataTable.Columns.Count - 1; j++)
{
    object[][] dTemp = new object[DataTable.Rows.Count][];
    for (int i = 0; i < DataTable.Rows.Count; i++)
    dTemp.SetValue(new[] { DataTable.Rows[i][0], DataTable.Rows[i][j + 1] }, i);
    series.Scatter(dTemp).Name(DataTable.Columns[j + 1].ColumnName.ToString());
}


The above code block is working only for int or double values and not for DateTime values.

Please let me know If anyone does know how to plot datetime values in Kendo Scatter Chart.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900