Constructor is used to create an object, to set its initial parameters.
var myChart = new dhtmlChart(obj)
var myChart = new dhtmlChart({ view:"bar", container:"chart_container", value:"#sales#" })
The code snippet shows how to create dhtmlXChart object.