dateFieldString(default: "date")

The field containing the point date. It is used as a default categoryField for all series.

The data item field value must be either:

  • Date instance

  • String parsable by new Date([field value])

  • String in ASP.NET JSON format, i.e. "/Date(1320825600000-0800)/"

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dateField: "date",
    dataSource: {
        data: [
            { date: new Date("2023/1/1"), value: 100 },
            { date: new Date("2023/1/2"), value: 105 },
            { date: new Date("2023/1/3"), value: 102 }
        ]
    },
    series: [{
        field: "value",
        type: "line"
    }]
});
</script>
In this article
dateField
Not finding the help you need?
Contact Support