DHTMLX Docs & Samples Explorer

xValue

A property of dataset that defines xAxis values.

Value type: String

var chart =  new dhtmlXChart({
    xValue:"#years#",
    ...
})

or

chart.define("xValue","#years#");