title: CanvasJS docs show weird datapoints on the x-axis
body: <p>So, I've been looking at the docs here:
  <a href="https://canvasjs.com/php-charts/multi-series-area-chart/" rel="nofollow noreferrer">https://canvasjs.com/php-charts/multi-series-area-chart/</a></p>
  
  <p>It shows the datapoints array like this:</p>
  
  <pre><code>array("x" =&gt; 1451586600000, "y" =&gt; 96.709),
  array("x" =&gt; 1454265000000, "y" =&gt; 94.918),
  array("x" =&gt; 1456770600000, "y" =&gt; 95.152),
  array("x" =&gt; 1459449000000, "y" =&gt; 97.070),
  array("x" =&gt; 1462041000000, "y" =&gt; 97.305),
  array("x" =&gt; 1464719400000, "y" =&gt; 89.854),
  array("x" =&gt; 1467311400000, "y" =&gt; 88.158),
  array("x" =&gt; 1469989800000, "y" =&gt; 87.989),
  array("x" =&gt; 1472668200000, "y" =&gt; 86.366),
  array("x" =&gt; 1475260200000, "y" =&gt; 81.650),
  array("x" =&gt; 1477938600000, "y" =&gt; 85.789),
  array("x" =&gt; 1480530600000, "y" =&gt; 83.846),
  array("x" =&gt; 1483209000000, "y" =&gt; 84.927),
  array("x" =&gt; 1485887400000, "y" =&gt; 82.609),
  array("x" =&gt; 1488306600000, "y" =&gt; 81.428),
  array("x" =&gt; 1490985000000, "y" =&gt; 83.259),
  array("x" =&gt; 1493577000000, "y" =&gt; 83.153),
  array("x" =&gt; 1496255400000, "y" =&gt; 84.180),
  array("x" =&gt; 1498847400000, "y" =&gt; 84.840),
  array("x" =&gt; 1501525800000, "y" =&gt; 82.671),
  array("x" =&gt; 1504204200000, "y" =&gt; 87.496),
  array("x" =&gt; 1506796200000, "y" =&gt; 86.007),
  array("x" =&gt; 1509474600000, "y" =&gt; 87.233),
  array("x" =&gt; 1512066600000, "y"=&gt; 86.276)
  </code></pre>
  
  <p>And then further down in the JS section of the code, it formats this data with the following code:</p>
  
  <pre><code>xValueType: "dateTime",
  xValueFormatString: "MMM YYYY",
  </code></pre>
  
  <p>So, my question is that how does those number in the x key in the array translate to months like in this attached image here?
  <a href="https://i.stack.imgur.com/qkP1I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qkP1I.png" alt="image of the chart in action"></a></p>
  
  <p>And also, how would I convert my php datetime object to translate into those numbers in the x variable of the datapoints array.</p>