Sets the x value. It determines the position of the dataPoint on X Axis. It can be numeric or a dateTime value. Values can be positive or Negative.
Default: nullvar chart = new CanvasJS.Chart("container", { . . data: [{ dataPoints: [ {x:10, y : 10}, ], }, ] . . }); chart.render();