forked from mbonvini/TimeSeriesMaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
134 lines (117 loc) · 3.53 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html>
<head>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<style>
.currentPath {
stroke-width: 2px;
}
.x.axis {
padding-left: 20px;
padding-right: 20px;
}
.page-header {
padding-top:40px;
}
.axis path,
.axis line {
fill: none;
stroke: grey;
stroke-width: 1;
shape-rendering: crispEdges;
}
#canvas {
font: 12px Arial;
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Time Series Maker</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/mbonvini/TimeSeriesMaker"><i class="fa fa-github"></i> Github</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="page-header">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<p>
Do you know how your time series should look like, but generating it would take you a lot of time?</br>
The <a href="#">Time Series Maker</a> allows you to draw time series with your mouse and download
the result as a CSV, or JSON file ready for your models and algorithms!
</p>
<h4>How?</h4>
<p>
Left click with your mouse and keep the button pressed while you draw the shape you desire in the
plot area. When you reach the right side of the chart, or you release the mouse button,
your data is ready to be downloaded using the buttons below. You can choose either CSV or JSON format.
</p>
</div>
</div>
<!-- CANVAS -->
<div class="row">
<div class = "col-md-10 col-md-offset-1" id="canvas">
</div>
</div>
<div class="row">
<div class = "col-md-4 col-md-offset-1">
<a class="btn btn-info disabled" href="#" role="button" id="exportCsv">
<i class="fa fa-file-o"></i> Export CSV
</a>
<a class="btn btn-info disabled" href="#" role="button" id="exportJSON">
<i class="fa fa-file-o"></i> Export JSON
</a>
</div>
</div>
<div class="row">
<div class = "col-md-5 col-md-offset-1">
<h3>JSON format</h3>
<p>
The format of the data when exported in the JSON format is the following
</p>
<pre>
{
'times': [0.0, 0.1, ...],
'values': [12.5, 13.4, ...]
}
</pre>
</div>
<div class = "col-md-5">
<h3>CSV format</h3>
<p>
The format of the data when exported in the CSV format is the following
</p>
<pre>
time,value
0.0,12.5
0.1,13.4
...
</pre>
</div>
</div>
<div class="row">
<div class = "col-md-10 col-md-offset-1">
<hr style="width: 100%; color: #2c3e50; height: 1px; background-color:#2c3e50;" />
<p>
Made by Marco Bonvini © 2016<br/>
Released under <a href="https://github.com/mbonvini/TimeSeriesMaker/blob/master/LICENSE">MIT</a> license<br/>
Made with <a href="https://bootswatch.com/">Bootswatch</a>, <a href="https://d3js.org">D3.js</a>,
<a href="https://jquery.com/">jQuery</a>, and <a href="https://fortawesome.github.io/Font-Awesome/">FontAwesome</a>
</p>
</div>
</div>
</div>
</div>
<script src="js/tsmk.js"></script>
</body>
</html>