CSV with Date/Time: YYYYMMDDHHMM

107 views
Skip to first unread message

Angel ALRO

unread,
Feb 16, 2016, 12:23:56 PM2/16/16
to dygraphs-users
Hi, I'm trying to make a chart like the example by importing a CSV file.

http://dygraphs.com/tutorial.html (example 2 or 3)

<html>
<head>
<script type="text/javascript"
  src="dygraph-combined-dev.js"></script>
</head>
<body>
<div id="graphdiv3"
  style="width:500px; height:300px;"></div>
<script type="text/javascript">
  g3 = new Dygraph(
    document.getElementById("graphdiv3"),
    "temperatures.csv",
    {
      rollPeriod: 7,
      showRoller: true
    }
  );
</script>
</body>
</html>


But adding time, but I can not. You can help? a sample CSV file:

Date,High,Low
201601010800,62,39
201601010900,61,45
201601020800,62,44
201601020900,63,46
201601030800,62,42
201601030900,64,45
201601040800,57,45
201601040900,59,49
201601050800,54,44
201601050900,55,46
201601060800,55,36
201601060900,56,39


Date/time: YYYY/MM/DD HH:MM

Thanks

Keith Walters

unread,
Feb 25, 2016, 3:11:44 PM2/25/16
to dygraphs-users
Reply all
Reply to author
Forward
0 new messages