Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Evgeny
c3-closed
Commits
60fc19a2
Commit
60fc19a2
authored
Sep 23, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply fix for .class - #537 #447
parent
979c61cb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
c3.js
c3.js
+6
-6
c3.min.js
c3.min.js
+0
-0
api.region.js
src/api.region.js
+2
-2
class.js
src/class.js
+1
-1
grid.js
src/grid.js
+3
-3
No files found.
c3.js
View file @
60fc19a2
...
...
@@ -3221,7 +3221,7 @@
.
data
(
config
.
grid_x_lines
);
// enter
xgridLine
=
$$
.
xgridLines
.
enter
().
append
(
'g'
)
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
xgridLine
+
(
d
.
class
?
' '
+
d
.
class
:
''
);
});
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
xgridLine
+
(
d
[
'class'
]
?
' '
+
d
[
'class'
]
:
''
);
});
xgridLine
.
append
(
'line'
)
.
style
(
"opacity"
,
0
);
xgridLine
.
append
(
'text'
)
...
...
@@ -3246,7 +3246,7 @@
.
data
(
config
.
grid_y_lines
);
// enter
ygridLine
=
$$
.
ygridLines
.
enter
().
append
(
'g'
)
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
ygridLine
+
(
d
.
class
?
' '
+
d
.
class
:
''
);
});
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
ygridLine
+
(
d
[
'class'
]
?
' '
+
d
[
'class'
]
:
''
);
});
ygridLine
.
append
(
'line'
)
.
style
(
"opacity"
,
0
);
ygridLine
.
append
(
'text'
)
...
...
@@ -3339,7 +3339,7 @@
return
params
?
function
(
line
)
{
var
found
=
false
;
[].
concat
(
params
).
forEach
(
function
(
param
)
{
if
(((
'value'
in
param
&&
line
.
value
===
params
.
value
)
||
(
'class'
in
param
&&
line
.
class
===
params
.
class
)))
{
if
(((
'value'
in
param
&&
line
.
value
===
params
.
value
)
||
(
'class'
in
param
&&
line
[
'class'
]
===
params
[
'class'
]
)))
{
found
=
true
;
}
});
...
...
@@ -5259,7 +5259,7 @@
return
this
.
classShapes
(
d
)
+
this
.
generateClass
(
CLASS
.
areas
,
d
.
id
);
};
c3_chart_internal_fn
.
classRegion
=
function
(
d
,
i
)
{
return
this
.
generateClass
(
CLASS
.
region
,
i
)
+
' '
+
(
'class'
in
d
?
d
.
class
:
''
);
return
this
.
generateClass
(
CLASS
.
region
,
i
)
+
' '
+
(
'class'
in
d
?
d
[
'class'
]
:
''
);
};
c3_chart_internal_fn
.
classEvent
=
function
(
d
)
{
return
this
.
generateClass
(
CLASS
.
eventRect
,
d
.
index
);
...
...
@@ -5955,10 +5955,10 @@
config
.
regions
=
config
.
regions
.
filter
(
function
(
region
)
{
var
found
=
false
;
if
(
!
region
.
class
)
{
if
(
!
region
[
'class'
]
)
{
return
true
;
}
region
.
class
.
split
(
' '
).
forEach
(
function
(
c
)
{
region
[
'class'
]
.
split
(
' '
).
forEach
(
function
(
c
)
{
if
(
classes
.
indexOf
(
c
)
>=
0
)
{
found
=
true
;
}
});
return
!
found
;
...
...
c3.min.js
View file @
60fc19a2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/api.region.js
View file @
60fc19a2
...
...
@@ -27,10 +27,10 @@ c3_chart_fn.regions.remove = function (options) {
config
.
regions
=
config
.
regions
.
filter
(
function
(
region
)
{
var
found
=
false
;
if
(
!
region
.
class
)
{
if
(
!
region
[
'class'
]
)
{
return
true
;
}
region
.
class
.
split
(
' '
).
forEach
(
function
(
c
)
{
region
[
'class'
]
.
split
(
' '
).
forEach
(
function
(
c
)
{
if
(
classes
.
indexOf
(
c
)
>=
0
)
{
found
=
true
;
}
});
return
!
found
;
...
...
src/class.js
View file @
60fc19a2
...
...
@@ -119,7 +119,7 @@ c3_chart_internal_fn.classAreas = function (d) {
return
this
.
classShapes
(
d
)
+
this
.
generateClass
(
CLASS
.
areas
,
d
.
id
);
};
c3_chart_internal_fn
.
classRegion
=
function
(
d
,
i
)
{
return
this
.
generateClass
(
CLASS
.
region
,
i
)
+
' '
+
(
'class'
in
d
?
d
.
class
:
''
);
return
this
.
generateClass
(
CLASS
.
region
,
i
)
+
' '
+
(
'class'
in
d
?
d
[
'class'
]
:
''
);
};
c3_chart_internal_fn
.
classEvent
=
function
(
d
)
{
return
this
.
generateClass
(
CLASS
.
eventRect
,
d
.
index
);
...
...
src/grid.js
View file @
60fc19a2
...
...
@@ -84,7 +84,7 @@ c3_chart_internal_fn.redrawGrid = function (duration, withY) {
.
data
(
config
.
grid_x_lines
);
// enter
xgridLine
=
$$
.
xgridLines
.
enter
().
append
(
'g'
)
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
xgridLine
+
(
d
.
class
?
' '
+
d
.
class
:
''
);
});
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
xgridLine
+
(
d
[
'class'
]
?
' '
+
d
[
'class'
]
:
''
);
});
xgridLine
.
append
(
'line'
)
.
style
(
"opacity"
,
0
);
xgridLine
.
append
(
'text'
)
...
...
@@ -109,7 +109,7 @@ c3_chart_internal_fn.redrawGrid = function (duration, withY) {
.
data
(
config
.
grid_y_lines
);
// enter
ygridLine
=
$$
.
ygridLines
.
enter
().
append
(
'g'
)
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
ygridLine
+
(
d
.
class
?
' '
+
d
.
class
:
''
);
});
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
ygridLine
+
(
d
[
'class'
]
?
' '
+
d
[
'class'
]
:
''
);
});
ygridLine
.
append
(
'line'
)
.
style
(
"opacity"
,
0
);
ygridLine
.
append
(
'text'
)
...
...
@@ -202,7 +202,7 @@ c3_chart_internal_fn.getGridFilterToRemove = function (params) {
return
params
?
function
(
line
)
{
var
found
=
false
;
[].
concat
(
params
).
forEach
(
function
(
param
)
{
if
(((
'value'
in
param
&&
line
.
value
===
params
.
value
)
||
(
'class'
in
param
&&
line
.
class
===
params
.
class
)))
{
if
(((
'value'
in
param
&&
line
.
value
===
params
.
value
)
||
(
'class'
in
param
&&
line
[
'class'
]
===
params
[
'class'
]
)))
{
found
=
true
;
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment