forked from novus/nvd3
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.py
220 lines (138 loc) · 5.2 KB
/
app.py
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
from flask import Flask, jsonify, render_template, request, send_file
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/bullet.html')
def bullet():
return render_template('bullet.html')
@app.route('/bulletChart.html')
def bulletChart():
return render_template('bulletChart.html')
@app.route('/crossfilter.html')
def crossfilter():
return render_template('crossfilter.html')
@app.route('/crossfilterWithDimentions.html')
def crossfilterWithDimentions():
return render_template('crossfilterWithDimentions.html')
@app.route('/crossfilterWithTables.html')
def crossfilterWithTables():
return render_template('crossfilterWithTables.html')
@app.route('/cumulativeLineChart.html')
def cumulativeLineChart():
return render_template('cumulativeLineChart.html')
@app.route('/discreteBarChart.html')
def discreteBarChart():
return render_template('discreteBarChart.html')
@app.route('/historicalBar.html')
def historicalBar():
return render_template('historicalBar.html')
@app.route('/historicalBarChart.html')
def historicalBarChart():
return render_template('historicalBarChart.html')
@app.route('/horizon.html')
def horizon():
return render_template('horizon.html')
@app.route('/indentedtree.html')
def indentedtree():
return render_template('indentedtree.html')
@app.route('/legend.html')
def legend():
return render_template('legend.html')
@app.route('/line.html')
def line():
return render_template('line.html')
@app.route('/lineChart.html')
def lineChart():
return render_template('lineChart.html')
@app.route('/lineChartSVGResize.html')
def lineChartSVGResize():
return render_template('lineChartSVGResize.html')
@app.route('/linePlusBarChart.html')
def linePlusBarChart():
return render_template('linePlusBarChart.html')
@app.route('/linePlusBarWithFocusChart.html')
def linePlusBarWithFocusChart():
return render_template('linePlusBarWithFocusChart.html')
@app.route('/lineWithFisheyeChart.html')
def lineWithFisheyeChart():
return render_template('lineWithFisheyeChart.html')
@app.route('/lineWithFocusChart.html')
def lineWithFocusChart():
return render_template('lineWithFocusChart.html')
@app.route('/multiBar.html')
def multiBar():
return render_template('multiBar.html')
@app.route('/multiBarChart.html')
def multiBarChart():
return render_template('multiBarChart.html')
@app.route('/multiBarHorizontalChart.html')
def multiBarHorizontalChart():
return render_template('multiBarHorizontalChart.html')
@app.route('/multiChart.html')
def multiChart():
return render_template('multiChart.html')
@app.route('/parallelCoordinates.html')
def parallelCoordinates():
return render_template('parallelCoordinates.html')
@app.route('/pie.html')
def pie():
return render_template('pie.html')
@app.route('/pieChart.html')
def pieChart():
return render_template('pieChart.html')
@app.route('/scatter.html')
def scatter():
return render_template('scatter.html')
@app.route('/scatterChart.html')
def scatterChart():
return render_template('scatterChart.html')
@app.route('/scatterPlusLineChart.html')
def scatterPlusLineChart():
return render_template('scatterPlusLineChart.html')
@app.route('/sparkline.html')
def sparkline():
return render_template('sparkline.html')
@app.route('/sparklinePlus.html')
def sparklinePlus():
return render_template('sparklinePlus.html')
@app.route('/stackedArea.html')
def stackedArea():
return render_template('stackedArea.html')
@app.route('/stackedAreaChart.html')
def stackedAreaChart():
return render_template('stackedAreaChart.html')
@app.route('/test/lineChartTest.html')
def test_lineChartTest():
return render_template('test/lineChartTest.html')
@app.route('/test/pieChartTest.html')
def test_pieChartTest():
return render_template('test/pieChartTest.html')
@app.route('/test/ScatterChartTest.html')
def test_ScatterChartTest():
return render_template('test/ScatterChartTest.html')
@app.route('/test/stackedAreaChartTest.html')
def test_stackedAreaChartTest():
return render_template('test/stackedAreaChartTest.html')
@app.route('/test/multiBarChartTest.html')
def test_multiBarChartTest():
return render_template('test/multiBarChartTest.html')
@app.route('/test/polylinearTest.html')
def test_polylinearTest():
return render_template('test/polylinearTest.html')
@app.route('/test/realTimeChartTest.html')
def test_realTimeChartTest():
return render_template('test/realTimeChartTest.html')
"""
@app.route('/images/grey-plus.png')
def test_realTimeChartTest():
return send_file('static/images/grey-plus.png', mimetype='image/png')
@app.route('/images/grey-minus.png')
def test_realTimeChartTest():
return send_file('static/images/grey-minus.png', mimetype='image/png')
@app.route('/images/nvd3_sampleLineChart1.png')
def test_realTimeChartTest():
return send_file('static/images/nvd3_sampleLineChart1.png', mimetype='image/png')
"""
if __name__ == "__main__":
app.run(debug=True, port=8000)