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
charts
c3-closed
Commits
c92f6e1f
Commit
c92f6e1f
authored
Jul 08, 2013
by
Masayuki Tanaka
Committed by
masayuki
Jul 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use fill-opacity for region
parent
6602877a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
c3.js
c3.js
+3
-3
No files found.
c3.js
View file @
c92f6e1f
...
...
@@ -1256,9 +1256,9 @@
.
attr
(
"y"
,
__axis_rotated
?
regionStart
:
margin
.
top
)
.
attr
(
"width"
,
__axis_rotated
?
width
:
regionWidth
)
.
attr
(
"height"
,
__axis_rotated
?
regionWidth
:
height
)
.
style
(
"opacity"
,
function
(
d
){
return
typeof
d
.
opacity
!==
'undefined'
?
d
.
opacity
:
.
1
})
.
style
(
"
fill-
opacity"
,
function
(
d
){
return
typeof
d
.
opacity
!==
'undefined'
?
d
.
opacity
:
.
1
})
mainRegion
.
exit
().
transition
().
duration
(
withTransition
?
250
:
0
)
.
style
(
"opacity"
,
0
)
.
style
(
"
fill-
opacity"
,
0
)
.
remove
()
}
...
...
@@ -1602,7 +1602,7 @@
regionClasses
.
forEach
(
function
(
cls
){
var
regions
=
d3
.
selectAll
(
'.'
+
cls
)
if
(
typeof
options
.
duration
!==
'undefined'
)
{
regions
=
regions
.
transition
().
duration
(
options
.
duration
).
style
(
'opacity'
,
0
)
regions
=
regions
.
transition
().
duration
(
options
.
duration
).
style
(
'
fill-
opacity'
,
0
)
}
regions
.
remove
()
__regions
=
__regions
.
filter
(
function
(
region
){
...
...
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