-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
347 lines (330 loc) · 12.6 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
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta tags -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
name="viewport"
/>
<meta name="viewport" content="width=device-width" />
<!-- Favicon and title -->
<!-- <link rel="icon" href="path/to/fav.png" /> -->
<title>Introduction | sirchartsalot.js</title>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"
rel="stylesheet"
/>
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0="
crossorigin="anonymous"
/>
<!-- Halfmoon CSS -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon-variables.min.css"
rel="stylesheet"
/>
<!--
Or,
Use the following (no variables, supports IE11):
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon.min.css" rel="stylesheet" />
Learn more: https://www.gethalfmoon.com/docs/customize/#notes-on-browser-compatibility
-->
<!-- sirchartsalot CSS -->
<link href="./dist/sirchartsalot.css" rel="stylesheet" />
<!-- Docs CSS -->
<link href="./docs/css/docs.css" rel="stylesheet" />
</head>
<body
class="with-custom-webkit-scrollbars with-custom-css-scrollbars"
data-dm-shortcut-enabled="true"
data-sidebar-shortcut-enabled="true"
data-set-preferred-theme-onload="true"
>
<!-- Modals go here -->
<!-- Reference: https://www.gethalfmoon.com/docs/modal -->
<!-- Page wrapper start -->
<div
class="page-wrapper with-navbar with-sidebar"
data-sidebar-type="overlayed-sm-and-down"
>
<!-- Sticky alerts (toasts), empty container -->
<!-- Reference: https://www.gethalfmoon.com/docs/sticky-alerts-toasts -->
<div class="sticky-alerts"></div>
<!-- Navbar start -->
<nav class="navbar">
<div class="navbar-content">
<button
id="toggle-sidebar-btn"
class="btn btn-action"
type="button"
onclick="halfmoon.toggleSidebar()"
>
<i class="fa fa-bars" aria-hidden="true"></i>
</button>
</div>
<a href="./index.html" class="navbar-brand ml-10 ml-sm-15">
<div class="logo d-flex align-items-center">
<svg
class="mr-5"
xmlns="http://www.w3.org/2000/svg"
width="28"
height="28"
viewBox="0 0 18 18"
>
<path
d="M16 1H2c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h14c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1zM7 13H5V8h2v5zm3 0H8V5h2v8zm3 0h-2V9h2v4z"
></path>
</svg>
<h4 class="m-0 font-size-18 font-weight-normal">
<span class="font-weight-bold">sir</span
><span class="font-weight-normal">chartsalot</span
><span class="font-weight-light font-size-16">.js</span>
</h4>
</div>
<span class="badge font-size-12 text-monospace ml-15 px-5 px-sm-10">
v0.4.0
</span>
</a>
<ul class="navbar-nav hidden-sm-and-down">
<li class="nav-item active">
<a href="./index.html" class="nav-link">Documentation</a>
</li>
<li class="nav-item">
<a href="./docs/license.html" class="nav-link"
>License
<span class="ml-5 text-monospace font-size-12">(MIT)</span></a
>
</li>
</ul>
<div class="navbar-content ml-auto">
<!-- Github button container 1 start -->
<div
class="pt-5 mr-5 d-none d-lg-inline-block"
id="gh-star-btn-container-1"
>
<div class="hidden-dm">
<span></span>
</div>
<div class="hidden-lm">
<span></span>
</div>
</div>
<!-- Github button container 1 end -->
<button
class="btn btn-action mr-5"
type="button"
onclick="halfmoon.toggleDarkMode()"
aria-label="Toggle dark mode"
>
<i class="fa fa-moon-o" aria-hidden="true"></i>
</button>
<a
href="https://github.com/jfelixdev/sirchartsalot-js"
class="btn btn-primary hidden-sm-and-down"
role="button"
>
<i class="fa fa-cloud-download mr-5" aria-hidden="true"></i>
Download
</a>
<div class="dropdown with-arrow hidden-md-and-up">
<button
class="btn navbar-menu-btn"
data-toggle="dropdown"
type="button"
id="navbar-dropdown-toggle-btn"
aria-haspopup="true"
aria-expanded="false"
>
<span class="text">Menu</span>
<i class="fa fa-angle-down" aria-hidden="true"></i>
</button>
<div
class="dropdown-menu dropdown-menu-right"
aria-labelledby="navbar-dropdown-toggle-btn"
>
<a href="./index.html" class="dropdown-item">Documentation</a>
<a href="./docs/license.html" class="dropdown-item"
>License
<span class="text-monospace font-size-12">(MIT)</span></a
>
<div class="dropdown-divider"></div>
<!-- Github button container 2 start -->
<div class="pt-5" id="gh-star-btn-container-2">
<div class="dropdown-content py-5 hidden-dm">
<span></span>
</div>
<div class="dropdown-content py-5 hidden-lm">
<span></span>
</div>
<div class="dropdown-divider"></div>
</div>
<!-- Github button container 2 end -->
<div class="dropdown-content">
<a
href="https://github.com/jfelixdev/sirchartsalot-js"
class="btn btn-primary btn-download-sm"
role="button"
>
<i class="fa fa-cloud-download" aria-hidden="true"></i>
<span class="ml-5">Download</span>
</a>
</div>
</div>
</div>
</div>
</nav>
<!-- Navbar end -->
<!-- Sidebar overlay -->
<div class="sidebar-overlay" onclick="halfmoon.toggleSidebar()"></div>
<!-- Sidebar start -->
<!-- Reference: https://www.gethalfmoon.com/docs/sidebar -->
<div class="sidebar">
<div class="sidebar-menu">
<!-- Sidebar content with the search box -->
<!-- <div class="sidebar-content">
<input type="text" class="form-control" placeholder="Search">
<div class="mt-10 font-size-12">
Press <kbd>/</kbd> to focus
</div>
</div> -->
<!-- Sidebar links and titles -->
<h5 class="sidebar-title">Getting started</h5>
<div class="sidebar-divider"></div>
<a href="./index.html" class="sidebar-link active">Introduction</a>
<a href="./docs/installation.html" class="sidebar-link"
>Installation</a
>
<a href="./docs/usage.html" class="sidebar-link">Usage</a>
<br />
<h5 class="sidebar-title">Chart Types</h5>
<div class="sidebar-divider"></div>
<a href="./docs/chart-single.html" class="sidebar-link"
>Single Bar Graph</a
>
<a href="./docs/chart-grouped.html" class="sidebar-link"
>Grouped Bar Graph
</a>
<a href="./docs/chart-floating.html" class="sidebar-link"
>Floating Bar Graph
</a>
<div class="sidebar-divider"></div>
<a href="./docs/chart-stacked.html" class="sidebar-link"
>Stacked Bar Graph</a
>
<a href="./docs/chart-100stacked.html" class="sidebar-link"
>100% Stacked Bar Graph</a
>
<a href="./docs/chart-diverging.html" class="sidebar-link"
>Diverging Stacked Bar Graph</a
>
<div class="sidebar-divider"></div>
<a href="./docs/chart-funnel.html" class="sidebar-link"
>Funnel Chart</a
>
<a href="./docs/chart-splitfunnel.html" class="sidebar-link"
>Split Funnel Chart</a
>
</div>
</div>
<!-- Sidebar end -->
<!-- Content wrapper start -->
<div class="content-wrapper">
<!--
Add your page's main content here
Examples:
1. https://www.gethalfmoon.com/docs/content-and-cards/#building-a-page
2. https://www.gethalfmoon.com/docs/grid-system/#building-a-dashboard
-->
<div class="container-fluid">
<div class="row">
<div class="col-lg-9">
<div class="content">
<div class="content-header d-flex align-items-center">
<svg
class="pr-5"
xmlns="http://www.w3.org/2000/svg"
width="2em"
height="2em"
viewBox="0 0 24 24"
>
<path
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"
/>
</svg>
<h1 class="content-title my-0">Introduction</h1>
</div>
<p>
Sirchartsalot.js is a front-end javascript library for
building responsive bar graphs with native support for dark
mode.
</p>
<figure
class="sirchartsalot-figure content shadow-lg bo m-0 p-0"
>
<div id="graph"></div>
<p
class="sirchartsalot-description my-0 px-card py-10 bg-light-lm bg-very-dark-dm rounded-bottom"
>
<button class="btn btn-sm" type="button">-</button>
<button class="btn btn-sm" type="button">+</button>
<button class="btn btn-sm btn-primary" type="button">
Randomize Data
</button>
</p>
</figure>
</div>
<div class="content mb-0">
<hr class="mb-20" />
<div class="text-right font-size-16 mb-20">
Up next:
<a href="./docs/installation.html" class="hyperlink ml-5">
Installation
<i class="fa fa-angle-right ml-5" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
<div class="col-lg-3 on-this-page-nav-container">
<div class="content">
<div class="on-this-page-nav" id="on-this-page-nav">
<div class="title">On this page</div>
<a href="#">Praesent condimentum</a>
<a href="#">Nam faucibus arcu</a>
<a href="#">Fusce in ipsum iaculis</a>
<a href="#">Donec luctus justo eu</a>
<a href="#">In fringilla nibh eget </a>
<a href="#">Sed nec tellus efficitur,</a>
<a href="#">Ut quis massa in ante </a>
<a href="#">Ut iaculis orci in commodo</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Content wrapper end -->
</div>
<!-- Page wrapper end -->
<!-- Halfmoon JS -->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/js/halfmoon.js"
integrity="sha256-0ZkuxGuEGLAgjwhw1C+ouDb2o7EG3h6QnVRegRr6B6Y="
crossorigin="anonymous"
></script>
<!-- SVG.js -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/svg.js/3.0.16/svg.js"
integrity="sha512-M17tsaj3tHw5m/gI+8XjDLTuPZ0cpTofhFLJUT9niFa/DK8WAhsSLW764iSaaXoAoivXEFUP6VxvpiahJPQ4fg=="
crossorigin="anonymous"
></script>
<!-- sirChartsALot -->
<script src="./dist/sirchartsalot.js"></script>
<!-- Docs script -->
<script src="./docs/js/docs.js"></script>
</body>
</html>