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
127b6258
Commit
127b6258
authored
Mar 26, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/loga4/c3
into loga4-master
parents
4049d4f0
80931ff6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
c3.js
c3.js
+3
-0
No files found.
c3.js
View file @
127b6258
...
...
@@ -3045,6 +3045,7 @@
/*-- Draw Legend --*/
function
focusLegend
(
id
)
{
if
(
!
__legend_show
)
{
return
;
}
var
legendItem
=
legend
.
selectAll
(
'.legend-item'
),
isTarget
=
function
(
d
)
{
return
!
id
||
d
===
id
;
},
notTarget
=
function
(
d
)
{
return
!
isTarget
(
d
);
};
...
...
@@ -3052,6 +3053,7 @@
legendItem
.
filter
(
isTarget
).
transition
().
duration
(
100
).
style
(
'opacity'
,
1
);
}
function
defocusLegend
(
id
)
{
if
(
!
__legend_show
)
{
return
;
}
var
legendItem
=
legend
.
selectAll
(
'.legend-item'
),
isTarget
=
function
(
d
)
{
return
!
id
||
d
===
id
;
},
notTarget
=
function
(
d
)
{
return
!
isTarget
(
d
);
};
...
...
@@ -3059,6 +3061,7 @@
legendItem
.
filter
(
isTarget
).
transition
().
duration
(
100
).
style
(
'opacity'
,
0.3
);
}
function
revertLegend
()
{
if
(
!
__legend_show
)
{
return
;
}
legend
.
selectAll
(
'.legend-item'
)
.
transition
().
duration
(
100
)
.
style
(
'opacity'
,
1
);
...
...
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