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
f4f2346d
Commit
f4f2346d
authored
Jul 03, 2013
by
Masayuki Tanaka
Committed by
masayuki
Jul 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify select/unselect interface
parent
90208eb1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
c3.js
c3.js
+4
-4
No files found.
c3.js
View file @
f4f2346d
...
@@ -1534,13 +1534,13 @@
...
@@ -1534,13 +1534,13 @@
)
)
}
}
c3
.
select
=
function
(
indices
,
resetOther
)
{
c3
.
select
=
function
(
i
ds
,
i
ndices
,
resetOther
)
{
if
(
!
__data_selection_enabled
)
return
if
(
!
__data_selection_enabled
)
return
main
.
selectAll
(
'.__shapes'
).
selectAll
(
'.__shape'
).
each
(
function
(
d
,
i
){
main
.
selectAll
(
'.__shapes'
).
selectAll
(
'.__shape'
).
each
(
function
(
d
,
i
){
var
selectShape
=
(
this
.
nodeName
===
'circle'
)
?
selectPoint
:
selectBar
,
var
selectShape
=
(
this
.
nodeName
===
'circle'
)
?
selectPoint
:
selectBar
,
unselectShape
=
(
this
.
nodeName
===
'circle'
)
?
unselectPoint
:
unselectBar
unselectShape
=
(
this
.
nodeName
===
'circle'
)
?
unselectPoint
:
unselectBar
if
(
indices
.
indexOf
(
i
)
>=
0
)
{
if
(
indices
.
indexOf
(
i
)
>=
0
)
{
if
(
__data_selection_
grouped
||
__data_selection_isselectable
(
d
))
{
if
(
__data_selection_
isselectable
(
d
)
&&
(
__data_selection_grouped
||
typeof
ids
===
'undefined'
||
ids
.
indexOf
(
d
.
id
)
>=
0
))
{
selectShape
(
d3
.
select
(
this
).
classed
(
'_s_'
,
true
),
d
,
i
)
selectShape
(
d3
.
select
(
this
).
classed
(
'_s_'
,
true
),
d
,
i
)
}
}
}
else
if
(
typeof
resetOther
!==
'undefined'
&&
resetOther
)
{
}
else
if
(
typeof
resetOther
!==
'undefined'
&&
resetOther
)
{
...
@@ -1549,12 +1549,12 @@
...
@@ -1549,12 +1549,12 @@
})
})
}
}
c3
.
unselect
=
function
(
indices
)
{
c3
.
unselect
=
function
(
i
ds
,
i
ndices
)
{
if
(
!
__data_selection_enabled
)
return
if
(
!
__data_selection_enabled
)
return
main
.
selectAll
(
'.__shapes'
).
selectAll
(
'.__shape'
).
each
(
function
(
d
,
i
){
main
.
selectAll
(
'.__shapes'
).
selectAll
(
'.__shape'
).
each
(
function
(
d
,
i
){
var
unselectShape
=
(
this
.
nodeName
===
'circle'
)
?
unselectPoint
:
unselectBar
var
unselectShape
=
(
this
.
nodeName
===
'circle'
)
?
unselectPoint
:
unselectBar
if
(
typeof
indices
===
'undefined'
||
indices
.
indexOf
(
i
)
>=
0
)
{
if
(
typeof
indices
===
'undefined'
||
indices
.
indexOf
(
i
)
>=
0
)
{
if
(
__data_selection_
grouped
||
__data_selection_isselectable
(
d
))
{
if
(
__data_selection_
isselectable
(
d
)
&&
(
__data_selection_grouped
||
typeof
ids
===
'undefined'
||
ids
.
indexOf
(
d
.
id
)
>=
0
))
{
unselectShape
(
d3
.
select
(
this
).
classed
(
'_s_'
,
false
),
d
,
i
)
unselectShape
(
d3
.
select
(
this
).
classed
(
'_s_'
,
false
),
d
,
i
)
}
}
}
}
...
...
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