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
eb08e08b
Commit
eb08e08b
authored
Apr 30, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor focus/defocus legend item
parent
a4bee876
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
c3.js
c3.js
+3
-9
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
eb08e08b
...
...
@@ -3763,7 +3763,7 @@
callback
=
getArcOnMouseOver
();
// transitions
expandArc
(
updated
.
data
.
id
);
focusLegend
(
updated
.
data
.
id
);
toggleFocusLegend
(
updated
.
data
.
id
,
true
);
callback
(
arcData
,
i
);
})
.
on
(
'mousemove'
,
function
(
d
)
{
...
...
@@ -3931,12 +3931,6 @@
}
});
}
function
focusLegend
(
id
)
{
toggleFocusLegend
(
id
,
true
);
}
function
defocusLegend
(
id
)
{
toggleFocusLegend
(
id
,
false
);
}
function
revertLegend
()
{
legend
.
selectAll
(
'.'
+
CLASS
.
legendItem
)
.
transition
().
duration
(
100
)
...
...
@@ -4176,7 +4170,7 @@
if
(
hasArcType
(
c3
.
data
.
targets
))
{
expandArc
(
targetId
,
true
);
}
focusLegend
(
targetId
);
toggleFocusLegend
(
targetId
,
true
);
};
c3
.
defocus
=
function
(
targetId
)
{
...
...
@@ -4192,7 +4186,7 @@
if
(
hasArcType
(
c3
.
data
.
targets
))
{
unexpandArc
(
targetId
);
}
defocusLegend
(
targetId
);
toggleFocusLegend
(
targetId
,
false
);
};
c3
.
revert
=
function
(
targetId
)
{
...
...
c3.min.js
View file @
eb08e08b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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