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
a1370f4e
Commit
a1370f4e
authored
Nov 03, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix arc focus from legend event - #652
parent
c0f5426b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
c3.js
c3.js
+2
-2
c3.min.js
c3.min.js
+0
-0
arc.js
src/arc.js
+2
-0
legend.js
src/legend.js
+0
-2
No files found.
c3.js
View file @
a1370f4e
...
...
@@ -3797,9 +3797,7 @@
})
.
on
(
'mouseout'
,
function
(
id
)
{
$$
.
d3
.
select
(
this
).
classed
(
CLASS
.
legendItemFocused
,
false
);
if
(
!
$$
.
transiting
)
{
$$
.
api
.
revert
();
}
if
(
config
.
legend_item_onmouseout
)
{
config
.
legend_item_onmouseout
.
call
(
$$
,
id
);
}
...
...
@@ -4430,8 +4428,10 @@
interval
=
window
.
setInterval
(
function
()
{
if
(
!
$$
.
transiting
)
{
window
.
clearInterval
(
interval
);
if
(
$$
.
legend
.
selectAll
(
'.c3-legend-item-focused'
).
size
()
>
0
)
{
$$
.
expandArc
(
targetIds
);
}
}
},
10
);
return
;
}
...
...
c3.min.js
View file @
a1370f4e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/arc.js
View file @
a1370f4e
...
...
@@ -127,8 +127,10 @@ c3_chart_internal_fn.expandArc = function (targetIds) {
interval
=
window
.
setInterval
(
function
()
{
if
(
!
$$
.
transiting
)
{
window
.
clearInterval
(
interval
);
if
(
$$
.
legend
.
selectAll
(
'.c3-legend-item-focused'
).
size
()
>
0
)
{
$$
.
expandArc
(
targetIds
);
}
}
},
10
);
return
;
}
...
...
src/legend.js
View file @
a1370f4e
...
...
@@ -225,9 +225,7 @@ c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
})
.
on
(
'mouseout'
,
function
(
id
)
{
$$
.
d3
.
select
(
this
).
classed
(
CLASS
.
legendItemFocused
,
false
);
if
(
!
$$
.
transiting
)
{
$$
.
api
.
revert
();
}
if
(
config
.
legend_item_onmouseout
)
{
config
.
legend_item_onmouseout
.
call
(
$$
,
id
);
}
...
...
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