Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
457 lines (454 loc) · 15 KB
/
Copy pathindex.html
File metadata and controls
457 lines (454 loc) · 15 KB
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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
<!DOCTYPE html>
<html class='no-js'>
<head>
<meta charset='utf-8'>
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
<meta content='D3 based reusable chart library' name='description'>
<meta content='c3js.org' name='author'>
<meta content='width=device-width' name='viewport'>
<title>C3.js | D3-based reusable chart library</title>
<link href="/css/normalize-e465cb86.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/css/foundation.min-978d4ce8.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/css/tomorrow-d7cf0921.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/css/c3-bbe380ed.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/css/style-99fb8989.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/css/index-da39a3ee.css" media="screen" rel="stylesheet" type="text/css" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42896059-3', 'c3js.org');
ga('send', 'pageview');
</script>
<script src="/js/vendor/modernizr-2.6.1.min-68fdcc99.js" type="text/javascript"></script>
</head>
<body class='antialiased'>
<div class='sticky'>
<nav class='top-bar' data-options='sticky_on: large' data-topbar>
<ul class='title-area'>
<li class='name'>
<h1>
<a href='/'>C3.js | D3-based reusable chart library</a>
</h1>
</li>
<li class='toggle-topbar menu-icon'>
<a href='#'>
<span>Menu</span>
</a>
</li>
</ul>
<section class='top-bar-section'>
<ul class='right'>
<li class='has-form'>
<a class='button' href='/gettingstarted.html'>Getting Started</a>
</li>
<li class='divider'></li>
<li>
<a href='/examples.html'>Examples</a>
</li>
<li class='divider'></li>
<li>
<a href='/reference.html'>Reference</a>
</li>
<li class='divider'></li>
<li>
<a href='https://groups.google.com/forum/#!forum/c3js' target='_blank'>Forum</a>
</li>
<li class='divider'></li>
<li>
<a href='https://github.com/c3js/c3' target='_blank'>Source</a>
</li>
</ul>
</section>
</nav>
</div>
<div class='container'>
<h1 class='title'>
C3.js
<small>D3-based reusable chart library</small>
</h1>
<div class='chart'>
<div id='message'>
<a class='button small' Demo</a>
</div>
<div id='chart'></div>
</div>
<hr class='large'>
<h2 class='text-center'>Why C3?</h2>
<div class='row text-center features'>
<div class='medium-4 large-4 columns supporticons'>
<h3>Comfortable</h3>
<p>
C3 makes it easy to generate D3-based charts by wrapping the code required to construct the entire chart. We don't need to write D3 code any more.
</p>
</div>
<div class='medium-4 large-4 columns supporticons'>
<h3>Customizable</h3>
<p>
C3 gives some classes to each element when generating, so you can define a custom style by the class and it's possible to extend the structure directly by D3.
</p>
</div>
<div class='medium-4 large-4 columns supporticons'>
<h3>Controllable</h3>
<p>
C3 provides a variety of APIs and callbacks to access the state of the chart. By using them, you can update the chart even after it's rendered.
</p>
</div>
</div>
<h3 class='text-center sub'>
C3 enables deeper integration of charts into your application.
</h3>
<br>
<div class='text-center'>
<a class='button' href='/gettingstarted.html'>Getting Started</a>
</div>
<hr>
<h3>Change Log</h3>
<ul>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.12">v0.6.12</a><span class="gray"> - 2018-12-28</span>
<ul>
<li>Added index to tooltip’s title format callback.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.11">v0.6.11</a><span class="gray"> - 2018-12-08</span>
<ul>
<li>Fix a bug of resizing.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.10">v0.6.10</a><span class="gray"> - 2018-12-04</span>
<ul>
<li>Fix a bug of arc chart.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.9">v0.6.9</a><span class="gray"> - 2018-11-22</span>
<ul>
<li>Fix a bug.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.8">v0.6.8</a><span class="gray"> - 2018-10-01</span>
<ul>
<li>Add src/* npm package.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.7">v0.6.7</a><span class="gray"> - 2018-08-08</span>
<ul>
<li>Add the zoom type 'drag'.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.6">v0.6.6</a><span class="gray"> - 2018-07-24</span>
<ul>
<li>Fix bug of gauge chart.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.5">v0.6.5</a><span class="gray"> - 2018-07-14</span>
<ul>
<li>Fix bug of hidden legend option.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.4">v0.6.4</a><span class="gray"> - 2018-07-12</span>
<ul>
<li>Fix a bug of mouse events.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.3">v0.6.3</a><span class="gray"> - 2018-07-06</span>
<ul>
<li>Fix a bug of gauge.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.2">v0.6.2</a><span class="gray"> - 2018-06-08</span>
<ul>
<li>Add step-before and step-after for line.step.type option.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.23">v0.4.23</a><span class="gray"> - 2018-05-18</span>
<ul>
<li>Add axis.x.tick.multilineMax option (0.4 branch).</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.1">v0.6.1</a><span class="gray"> - 2018-05-17</span>
<ul>
<li>Add axis.x.tick.multilineMax option.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.6.0">v0.6.0</a><span class="gray"> - 2018-05-14</span>
<ul>
<li>Update D3 dependency to v5.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.5.4">v0.5.4</a><span class="gray"> - 2018-04-23</span>
<ul>
<li>Bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.5.3">v0.5.3</a><span class="gray"> - 2018-04-12</span>
<ul>
<li>Bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.5.2">v0.5.2</a><span class="gray"> - 2018-03-31</span>
<ul>
<li>Bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.5.1">v0.5.1</a><span class="gray"> - 2018-03-25</span>
<ul>
<li>Bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.5.0">v0.5.0</a><span class="gray"> - 2018-03-24</span>
<ul>
<li>Update D3 dependency to version 4.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.22">v0.4.22</a><span class="gray"> - 2018-03-21</span>
<ul>
<li>Add axis.x.inner option.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.21">v0.4.21</a><span class="gray"> - 2018-02-15</span>
<ul>
<li>Multi arc gauge chart.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.20">v0.4.20</a><span class="gray"> - 2018-02-11</span>
<ul>
<li>Fix gauge chart with fullCircle option.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.19">v0.4.19</a><span class="gray"> - 2018-02-10</span>
<ul>
<li>Do not call resize functions when chart is hidden.</li>
<li>Switched CI environment.</li>
<li>Have license in minified bundle.</li>
<li>Fixed a memory leak.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.18">v0.4.18</a><span class="gray"> - 2017-09-14</span>
<ul>
<li>point.focus.expand.r takes a function.</li>
<li>Pie and donuts really handle data.order correctly.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.17">v0.4.17</a><span class="gray"> - 2017-08-19</span>
<ul>
<li>Added bar.space option.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.16">v0.4.16</a><span class="gray"> - 2017-08-16</span>
<ul>
<li>Bug fix of bar chart.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.15">v0.4.15</a><span class="gray"> - 2017-07-20</span>
<ul>
<li>Move some style handling to css.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.14">v0.4.14</a><span class="gray"> - 2017-06-24</span>
<ul>
<li>Bug fix.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.13">v0.4.13</a><span class="gray"> - 2017-06-11</span>
<ul>
<li>New option and bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/v0.4.12">v0.4.12</a><span class="gray"> - 2017-05-28</span>
<ul>
<li>Performance improvement and bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.11">v0.4.11</a><span class="gray"> - 2016-05-01</span>
<ul>
<li>New features, performance improvement and bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.10">v0.4.10</a><span class="gray"> - 2015-03-17</span>
<ul>
<li>New features, performance improvement and bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.9">v0.4.9</a><span class="gray"> - 2015-01-18</span>
<ul>
<li>New features, performance improvement and bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.8">v0.4.8</a><span class="gray"> - 2014-12-14</span>
<ul>
<li>Bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.7">v0.4.7</a><span class="gray"> - 2014-12-02</span>
<ul>
<li>Bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.6">v0.4.6</a><span class="gray"> - 2014-12-01</span>
<ul>
<li>Bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.5">v0.4.5</a><span class="gray"> - 2014-11-30</span>
<ul>
<li>Bug fixes.</li>
<li>Performance improvement.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.4">v0.4.4</a><span class="gray"> - 2014-11-21</span>
<ul>
<li>New features (e.g. <span class="code">axis.y/y2.inner</span>, <span class="code">legend.hide</span> options)</li>
<li>Bug fixes.</li>
<li>Performance improvement.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.3">v0.4.3</a><span class="gray"> - 2014-11-18</span>
<ul>
<li>Bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.2">v0.4.2</a><span class="gray"> - 2014-11-17</span>
<ul>
<li>Bug fixes.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.1">v0.4.1</a><span class="gray"> - 2014-11-16</span>
<ul>
<li>Fixed class suffix.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.4.0">v0.4.0</a><span class="gray"> - 2014-11-15</span>
<ul>
<li>A lot of bug fixes and new features</li>
<li>Introduce unit test (it's not enough though)</li>
<li><a href="https://github.com/c3js/c3/releases/tag/0.4.0">and more...</a></li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.3.0">v0.3.0</a><span class="gray"> - 2014-08-22</span>
<ul>
<li>Introduced new architecture so that we can extend this library more easily.</li>
<li>Modified some options such as <span class="code">data.xFormat</span> and <span class="code">data.xLocaltime</span>.</li>
<li>Splitted source file into small ones.</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.2.5">v0.2.5</a><span class="gray"> - 2014-08-09</span>
<ul>
<li>Modified to use <span class="code">data.onclick</span>, <span class="code">data.onmouseover</span> and <span class="code">data.onmouseout</span> on pie/donut/gauge instead of its callbacks</li>
<li>Modified <span class="code">unload</span> interface</li>
<li>Bug fixes</li>
<li><a href="https://github.com/c3js/c3/releases/tag/0.2.5">and more...</a></li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.2.4">v0.2.4</a><span class="gray"> - 2014-06-16</span>
<ul>
<li>Added new options such as <span class="code">pie.sort</span>, <span class="code">donut.sort</span>, <span class="code">bar.zerobased</span>, <span class="code">area.zerobased</span></li>
<li>Added new API such as <span class="code">category</span>, <span class="code">categories</span></li>
<li>Bug fixes</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.2.3">v0.2.3</a><span class="gray"> - 2014-06-04</span>
<ul>
<li>Renamed callbacks (onend/onenter/onleave)</li>
<li>Added extension for zoom with reduction (by <a href="https://github.com/danelkhen">@danelkhen</a> Thank you!)</li>
<li>Bug fixes</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.2.2">v0.2.2</a><span class="gray"> - 2014-06-03</span>
<ul>
<li>Supported ungrouped tooltip</li>
<li>Added zoom.enable API</li>
<li>Bug fixes</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.2.1">v0.2.1</a><span class="gray"> - 2014-06-02</span>
<ul>
<li>Bug fixes</li>
</ul>
</li>
<li>
<a href="https://github.com/c3js/c3/releases/tag/0.2.0">v0.2.0</a><span class="gray"> - 2014-05-30</span>
<ul>
<li>Supported step line/area, stacked line/area, stacked line/area, gauge chart</li>
<li>Supported JSON as input</li>
<li>Added flow API</li>
<li>etc</li>
</ul>
</li>
<li><a href="https://github.com/c3js/c3/releases/tag/0.1.42">v0.1.42</a><span class="gray"> - 2014-05-18</span></li>
</ul>
<h3>Browser Support</h3>
<p>Because of the dependence on D3, C3 supports only modern browsers D3 supports. Please see <a href="https://github.com/mbostock/d3/wiki#browser--platform-support">the description in D3</a>.</p>
<p>Note: For IE9 and IE10, polyfill is required because c3 uses <span class="code">MutationObserver</span>, which is not supported in those versions. However, it's not required if charts always will be binded to the DOM specified by <span class="code">bindto</span> because <span class="code">MutationObserver</span> is not called in that case.</p>
<h3>Dependency</h3>
<ul>
<li><a href="https://github.com/mbostock/d3" target="_blank">D3.js</a> <span class="code">^4.12.0</span></li>
</ul>
<p>Note: If you need to use D3 v3.x, please use C3 <a href="https://unpkg.com/c3@0.4.22/c3.js">v0.4.22</a>, which is compatible with D3 v3.x.</p>
<h3>License</h3>
<p>MIT</p>
<footer>
<hr>
<p>© Masayuki Tanaka 2014</p>
</footer>
</div>
<script src="/js/jquery-1.11.0.min-910066fb.js" type="text/javascript"></script>
<script src="/js/foundation.min-1dfe8110.js" type="text/javascript"></script>
<script src="/js/highlight.pack-4af5004d.js" type="text/javascript"></script>
<script src="/js/d3-5.4.0.min-e9c75f0e.js" type="text/javascript"></script>
<script src="/js/c3.min-924a3b3b.js" type="text/javascript"></script>
<script>
hljs.initHighlightingOnLoad();
$(document).foundation();
</script>
<script src="/js/index-d5877282.js" type="text/javascript"></script>
</body>
</html>