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
0f537789
Commit
0f537789
authored
May 15, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error when mouse over with data.names - #197
parent
1bc00786
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
c3.js
c3.js
+10
-13
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
0f537789
...
@@ -2716,23 +2716,20 @@
...
@@ -2716,23 +2716,20 @@
if
(
dragging
)
{
return
;
}
// do nothing if dragging
if
(
dragging
)
{
return
;
}
// do nothing if dragging
if
(
hasArcType
(
c3
.
data
.
targets
))
{
return
;
}
if
(
hasArcType
(
c3
.
data
.
targets
))
{
return
;
}
var
selectedData
=
c3
.
data
.
targets
.
map
(
function
(
d
)
{
return
addName
(
d
.
values
[
i
]);
})
;
var
selectedData
=
c3
.
data
.
targets
.
map
(
function
(
d
)
{
return
addName
(
d
.
values
[
i
]);
})
,
var
j
,
newData
;
newData
=
[]
;
// Sort selectedData as names order
// Sort selectedData as names order
if
(
Object
.
keys
(
__data_names
).
length
>
0
)
{
Object
.
keys
(
__data_names
).
forEach
(
function
(
id
)
{
newData
=
[];
for
(
var
j
=
0
;
j
<
selectedData
.
length
;
j
++
)
{
for
(
var
id
in
__data_names
)
{
if
(
selectedData
[
j
]
&&
selectedData
[
j
].
id
===
id
)
{
for
(
j
=
0
;
j
<
selectedData
.
length
;
j
++
)
{
newData
.
push
(
selectedData
[
j
]);
if
(
selectedData
[
j
].
id
===
id
)
{
selectedData
.
shift
(
j
);
newData
.
push
(
selectedData
[
j
]);
break
;
selectedData
.
shift
(
j
);
break
;
}
}
}
}
}
selectedData
=
newData
.
concat
(
selectedData
);
// Add remained
});
}
selectedData
=
newData
.
concat
(
selectedData
);
// Add remained
// Expand shapes if needed
// Expand shapes if needed
if
(
__point_focus_expand_enabled
)
{
expandCircles
(
i
);
}
if
(
__point_focus_expand_enabled
)
{
expandCircles
(
i
);
}
...
...
c3.min.js
View file @
0f537789
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