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
80931ff6
Commit
80931ff6
authored
Mar 25, 2014
by
Logach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug with mouse[over|leave]. Read more
https://github.com/masayuki0812/c3/issues/90
parent
624230af
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 @
80931ff6
...
@@ -3046,6 +3046,7 @@
...
@@ -3046,6 +3046,7 @@
/*-- Draw Legend --*/
/*-- Draw Legend --*/
function
focusLegend
(
id
)
{
function
focusLegend
(
id
)
{
if
(
!
__legend_show
)
{
return
;
}
var
legendItem
=
legend
.
selectAll
(
'.legend-item'
),
var
legendItem
=
legend
.
selectAll
(
'.legend-item'
),
isTarget
=
function
(
d
)
{
return
!
id
||
d
===
id
;
},
isTarget
=
function
(
d
)
{
return
!
id
||
d
===
id
;
},
notTarget
=
function
(
d
)
{
return
!
isTarget
(
d
);
};
notTarget
=
function
(
d
)
{
return
!
isTarget
(
d
);
};
...
@@ -3053,6 +3054,7 @@
...
@@ -3053,6 +3054,7 @@
legendItem
.
filter
(
isTarget
).
transition
().
duration
(
100
).
style
(
'opacity'
,
1
);
legendItem
.
filter
(
isTarget
).
transition
().
duration
(
100
).
style
(
'opacity'
,
1
);
}
}
function
defocusLegend
(
id
)
{
function
defocusLegend
(
id
)
{
if
(
!
__legend_show
)
{
return
;
}
var
legendItem
=
legend
.
selectAll
(
'.legend-item'
),
var
legendItem
=
legend
.
selectAll
(
'.legend-item'
),
isTarget
=
function
(
d
)
{
return
!
id
||
d
===
id
;
},
isTarget
=
function
(
d
)
{
return
!
id
||
d
===
id
;
},
notTarget
=
function
(
d
)
{
return
!
isTarget
(
d
);
};
notTarget
=
function
(
d
)
{
return
!
isTarget
(
d
);
};
...
@@ -3060,6 +3062,7 @@
...
@@ -3060,6 +3062,7 @@
legendItem
.
filter
(
isTarget
).
transition
().
duration
(
100
).
style
(
'opacity'
,
0.3
);
legendItem
.
filter
(
isTarget
).
transition
().
duration
(
100
).
style
(
'opacity'
,
0.3
);
}
}
function
revertLegend
()
{
function
revertLegend
()
{
if
(
!
__legend_show
)
{
return
;
}
legend
.
selectAll
(
'.legend-item'
)
legend
.
selectAll
(
'.legend-item'
)
.
transition
().
duration
(
100
)
.
transition
().
duration
(
100
)
.
style
(
'opacity'
,
1
);
.
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