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
35e5a63d
Commit
35e5a63d
authored
Feb 13, 2015
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless code in mouseover - #948
parent
edcd907a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
36 deletions
+2
-36
c3.js
c3.js
+1
-18
c3.min.js
c3.min.js
+0
-0
interaction.js
src/interaction.js
+1
-18
No files found.
c3.js
View file @
35e5a63d
...
...
@@ -2308,28 +2308,11 @@
.
attr
(
"class"
,
$$
.
classEvent
.
bind
(
$$
))
.
style
(
"cursor"
,
config
.
data_selection_enabled
&&
config
.
data_selection_grouped
?
"pointer"
:
null
)
.
on
(
'mouseover'
,
function
(
d
)
{
var
index
=
d
.
index
,
selectedData
,
newData
;
var
index
=
d
.
index
;
if
(
$$
.
dragging
||
$$
.
flowing
)
{
return
;
}
// do nothing while dragging/flowing
if
(
$$
.
hasArcType
())
{
return
;
}
selectedData
=
$$
.
data
.
targets
.
map
(
function
(
t
)
{
return
$$
.
addName
(
$$
.
getValueOnIndex
(
t
.
values
,
index
));
});
// Sort selectedData as names order
newData
=
[];
Object
.
keys
(
config
.
data_names
).
forEach
(
function
(
id
)
{
for
(
var
j
=
0
;
j
<
selectedData
.
length
;
j
++
)
{
if
(
selectedData
[
j
]
&&
selectedData
[
j
].
id
===
id
)
{
newData
.
push
(
selectedData
[
j
]);
selectedData
.
shift
(
j
);
break
;
}
}
});
selectedData
=
newData
.
concat
(
selectedData
);
// Add remained
// Expand shapes for selection
if
(
config
.
point_focus_expand_enabled
)
{
$$
.
expandCircles
(
index
,
null
,
true
);
}
$$
.
expandBars
(
index
,
null
,
true
);
...
...
c3.min.js
View file @
35e5a63d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/interaction.js
View file @
35e5a63d
...
...
@@ -114,28 +114,11 @@ c3_chart_internal_fn.generateEventRectsForSingleX = function (eventRectEnter) {
.
attr
(
"class"
,
$$
.
classEvent
.
bind
(
$$
))
.
style
(
"cursor"
,
config
.
data_selection_enabled
&&
config
.
data_selection_grouped
?
"pointer"
:
null
)
.
on
(
'mouseover'
,
function
(
d
)
{
var
index
=
d
.
index
,
selectedData
,
newData
;
var
index
=
d
.
index
;
if
(
$$
.
dragging
||
$$
.
flowing
)
{
return
;
}
// do nothing while dragging/flowing
if
(
$$
.
hasArcType
())
{
return
;
}
selectedData
=
$$
.
data
.
targets
.
map
(
function
(
t
)
{
return
$$
.
addName
(
$$
.
getValueOnIndex
(
t
.
values
,
index
));
});
// Sort selectedData as names order
newData
=
[];
Object
.
keys
(
config
.
data_names
).
forEach
(
function
(
id
)
{
for
(
var
j
=
0
;
j
<
selectedData
.
length
;
j
++
)
{
if
(
selectedData
[
j
]
&&
selectedData
[
j
].
id
===
id
)
{
newData
.
push
(
selectedData
[
j
]);
selectedData
.
shift
(
j
);
break
;
}
}
});
selectedData
=
newData
.
concat
(
selectedData
);
// Add remained
// Expand shapes for selection
if
(
config
.
point_focus_expand_enabled
)
{
$$
.
expandCircles
(
index
,
null
,
true
);
}
$$
.
expandBars
(
index
,
null
,
true
);
...
...
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