title: How to use javascript epoch time directly in google charts?
body: <pre><code>    google.load('visualization', '1', {
      packages: ['corechart', 'line']
  });
  google.setOnLoadCallback(drawBasic);
  
  function drawBasic() {
  
      var data = new google.visualization.DataTable();
      data.addColumn('number', 'X');
      data.addColumn('number', 'Current Data');
  
      data.addRows([
          [
          1413154800000,
          0],
          [
          1413158400000,
          0],
          [
          1413162000000,
          0],
          [
          1413165600000,
          0],
          [
          1413169200000,
          0],
          [
          1413172800000,
          0],
          [
          1413176400000,
          0],
          [
          1413180000000,
          1],
          [
          1413183600000,
          5],
          [
          1413187200000,
          20],
          [
          1413190800000,
          16],
          [
          1413194400000,
          8],
          [
          1413198000000,
          2],
          [
          1413201600000,
          3],
          [
          1413205200000,
          2],
          [
          1413208800000,
          0],
          [
          1413212400000,
          0],
          [
          1413216000000,
          0],
          [
          1413219600000,
          0],
          [
          1413223200000,
          0],
          [
          1413226800000,
          0],
          [
          1413230400000,
          0],
          [
          1413234000000,
          0],
          [
          1413237600000,
          0]
      ]);
  
      var options = {
          hAxis: {
              title: 'Current Time',
              gridlines: {
                  color: 'none'
              }
          },
          vAxis: {
              title: 'Minutes',
              gridlines: {
                  color: 'none'
              }
          },
          curveType: 'function'
      };
  
      var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
  
      chart.draw(data, options);
  }
  </code></pre>
  
  <p>For creating a line chart, the data set is in epoch values. if its passed with new Date(epoch_value)  like <strong>[ new Date(1413230400000),   0]</strong>, it throws an error. Also tried setting type as date in options, which also doesn't work. </p>
  
  <p>Basically I want it to be in date / time format. </p>
  
  <p><img src="https://i.stack.imgur.com/wP7MW.png" alt="desired chart"></p>
  
  <p>Fiddle link :
  <a href="https://jsfiddle.net/sedhuait/oaomr4mg/" rel="nofollow noreferrer">link</a></p>