-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (185 loc) · 8.08 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Kitchen Sink v2.0.0 (Backbone.js Edition)</title>
<!--<link rel="stylesheet" href="./css/zingchart_common.css">-->
<link rel="stylesheet" href="./dist/styles/common.css">
<link href='https://fonts.googleapis.com/css?family=Roboto:300' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="zc-kitchen-sink"></div>
<!-- ZingChart -->
<script src="./node_modules/zingchart/client/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "./node_modules/zingchart/client/modules/";
</script>
<!-- ZingChart Modules -->
<!--<script src="./node_modules/zingchart/client/modules/zingchart-boxplot.js"></script>-->
<script src="./node_modules/zingchart/client/modules/zingchart-calendar.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-chord.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-dragging.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-grid.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-pareto.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-patterns.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-populationpyramid.min.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-rankflow.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-treemap.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-toolbar3d.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-wordcloud.js"></script>
<!-- ZingChart Map Modules -->
<script src="./node_modules/zingchart/client/modules/zingchart-maps.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-maps-geojson.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-maps-usa.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-maps-usa_ca.js"></script>
<script src="./node_modules/zingchart/client/modules/zingchart-maps-world-countries.js"></script>
<script type="text/template" id="SinkTemplate">
<div id="loading-shutter">
<div class="shutter-content">
Loading...
</div>
</div>
<div class="main-nav">
<div class="zc-logo"></div>
<h1>Kitchen Sink</h1>
<div class="flex-nav">
<ul class="flex-nav-list">
<li class="flex-nav-list-item" data-route="charts">
Standard Charts
</li>
<li class="flex-nav-list-item" data-route="visualizations">
Visualizations
</li>
<li class="flex-nav-list-item" data-route="maps">
Maps
</li>
<li class="flex-nav-list-item" data-route="interactive">
Interactive
</li>
<li class="flex-nav-list-item" data-route="markers">
Markers, Labels, & Formatting
</li>
<li class="flex-nav-list-item" data-route="design">
Design
</li>
<li class="flex-nav-list-item" data-route="customization">
Customization
</li>
<li class="flex-nav-list-item" data-route="integration">
Export, 3rd Party Integration, & API
</li>
</ul>
</div>
<label class="select-appearance">
<select id="theme-picker">
<option value="zingchart" selected>Light</option>
<option value="dark">Dark</option>
<!--<option value="windows-xp">Windows XP</option>-->
</select>
</label>
</div>
<div id="zc-current-view"></div>
</script>
<script type="text/template" id="ChartTemplate">
<div id="chart-container" class="flex-container">
<% _.each(charts, function(chart) { %>
<div class="flex-item <%= info.theme %>" <%= chart.type == 'iframe' ? "style='width:100%;'" : '' %> >
<% if (chart.type && chart.type == 'iframe') { %>
<% if (chart.header) { %>
<<%= chart.header.element %>>
<%= chart.header.text %>
<<%= "/" + chart.header.element %>>
<% } %>
<iframe src="<%= chart.src %>" height="<%= chart.height %>" width="<%= chart.width %>" frameBorder="<%= chart.frameBorder %>"></iframe>
<% } else { %>
<% if (chart.header) { %>
<<%= chart.header.element %>>
<%= chart.header.text %>
<<%= "/" + chart.header.element %>>
<% } %>
<div id="<%= chart.render.id %>"></div>
<% if (chart.options) { %>
<div class="flex-container flex-options">
<% if ( _.has(chart.options, 'select-labels') && ( chart.options['select-labels'].length == chart.options.selects.length) ) { %>
<% _.each(chart.options['select-labels'], function(label, idx){ %>
<div class="flex-item <%= info.theme %>">
<label> <%= label %> </label>
<label class="aspect-select-appearance">
<select class="aspect-select" id="<%= chart.render.id + '-aspect' %>">
<% _.each(chart.options.selects[idx], function(optionObj){ %>
<option value="<%= optionObj.value %>"> <%= optionObj.label %> </option>
<% }) %>
</select>
</label>
</div>
<% }) %>
<% } %>
<% if (chart.options.thirdDimension) { %>
<div class="flex-item">
<a id="<%= chart.render.id + '-3d' %>" class="btn">
Toggle 3D
</a>
</div>
<% } %>
<% if (chart.options.orientation) { %>
<div class="flex-item">
<a id="<%= chart.render.id + '-rotate' %>" class="btn">Rotate</a>
</div>
<% } %>
<% if (chart.options.markers) { %>
<div class="flex-item">
<a id="<%= chart.render.id + '-markers' %>" class="btn">
Cycle Marker Types
</a>
</div>
<% } %>
<% if (chart.options.stack) { %>
<div class="flex-item">
<a id="<%= chart.render.id + '-stack' %>" class="btn">
Change Stack Type
</a>
</div>
<% } %>
<% if (chart.options.types) { %>
<div class="flex-item">
<label>Primary Type: </label>
<label class="aspect-select-appearance">
<select class="aspect-select" id="<%= chart.render.id + '-type1' %>">
<% _.each(chart.options.types, function(type) { %>
<option value="<%= type.value %>"><%= type.label %></option>
<% }) %>
</select>
</label>
</div>
<div class="flex-item">
<label>Secondary Type: </label>
<label class="aspect-select-appearance">
<select class="aspect-select" id="<%= chart.render.id + '-type2' %>">
<% _.each(chart.options['types-2'], function(type) { %>
<option value="<%= type.value %>"><%= type.label %></option>
<% }) %>
</select>
</label>
</div>
<% } %>
</div>
<% } %>
<% } %>
</div>
<% }) %>
</div>
</script>
<script type="text/template" id="ControlsTemplate">
<div class="flex-container">
<p>Chart Options Here</p>
</div>
</script>
<script src="bower_components/requirejs/require.js"
data-main="/app/config"></script>
</body>
</html>