UNPKG
c3
Version:
latest (0.7.20)
0.7.20
0.7.19
0.7.18
0.7.17
0.7.16
0.7.15
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.14
0.6.13
0.6.12
0.6.11
0.6.10
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.24
0.4.23
0.4.22
0.4.21
0.4.20
0.4.19
0.4.18
0.4.17
0.4.16
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.11-rc4
0.4.11-rc3
0.4.11-rc2
0.4.10
0.4.10-rc5
0.4.10-rc4
0.4.9
0.4.8
0.4.7
0.4.5
0.4.4
0.3.0
0.0.1
D3-based reusable chart library
github.com/c3js/c3
c3js/c3
c3
/
src
/
category.ts
7 lines
(5 loc)
•
201 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
{
ChartInternal
}
from
'./core'
ChartInternal
.
prototype
.
categoryName
=
function
(
i
) {
var
config =
this
.
config
return
i < config.
axis_x_categories
.
length
? config.
axis_x_categories
[i] : i }