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
10ea44a1
Commit
10ea44a1
authored
Jun 25, 2014
by
Martijn Russchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed spelling
parent
e2b3b84c
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 @
10ea44a1
...
@@ -1530,7 +1530,7 @@
...
@@ -1530,7 +1530,7 @@
json
.
forEach
(
function
(
o
)
{
json
.
forEach
(
function
(
o
)
{
var
new_row
=
[];
var
new_row
=
[];
targetKeys
.
forEach
(
function
(
key
)
{
targetKeys
.
forEach
(
function
(
key
)
{
// convert undefined to null bec
ua
se undefined data will be removed in convertDataToTargets()
// convert undefined to null bec
au
se undefined data will be removed in convertDataToTargets()
var
v
=
typeof
o
[
key
]
===
'undefined'
?
null
:
o
[
key
];
var
v
=
typeof
o
[
key
]
===
'undefined'
?
null
:
o
[
key
];
new_row
.
push
(
v
);
new_row
.
push
(
v
);
});
});
...
@@ -3411,7 +3411,7 @@
...
@@ -3411,7 +3411,7 @@
if
(
hasArcType
(
c3
.
data
.
targets
))
{
return
;
}
if
(
hasArcType
(
c3
.
data
.
targets
))
{
return
;
}
if
(
!
__data_selection_enabled
)
{
return
;
}
// do nothing if not selectable
if
(
!
__data_selection_enabled
)
{
return
;
}
// do nothing if not selectable
if
(
__zoom_enabled
&&
!
zoom
.
altDomain
)
{
return
;
}
// skip if zoomable because of conflict drag dehavior
if
(
__zoom_enabled
&&
!
zoom
.
altDomain
)
{
return
;
}
// skip if zoomable because of conflict drag dehavior
if
(
!
__data_selection_multiple
)
{
return
;
}
// skip when single selection bec
ua
se drag is used for multiple selection
if
(
!
__data_selection_multiple
)
{
return
;
}
// skip when single selection bec
au
se drag is used for multiple selection
sx
=
dragStart
[
0
];
sx
=
dragStart
[
0
];
sy
=
dragStart
[
1
];
sy
=
dragStart
[
1
];
...
@@ -3987,7 +3987,7 @@
...
@@ -3987,7 +3987,7 @@
.
attr
(
'y'
,
0
)
.
attr
(
'y'
,
0
)
.
attr
(
'width'
,
width
)
.
attr
(
'width'
,
width
)
.
attr
(
'height'
,
height
);
.
attr
(
'height'
,
height
);
// exit : not needed bec
ua
se always only one rect exists
// exit : not needed bec
au
se always only one rect exists
}
else
{
}
else
{
if
(
!
eventRect
.
classed
(
CLASS
.
eventRectsSingle
))
{
if
(
!
eventRect
.
classed
(
CLASS
.
eventRectsSingle
))
{
...
@@ -5000,7 +5000,7 @@
...
@@ -5000,7 +5000,7 @@
}
}
c3
.
data
.
targets
=
c3
.
data
.
targets
.
concat
(
targets
);
// add remained
c3
.
data
.
targets
=
c3
.
data
.
targets
.
concat
(
targets
);
// add remained
// check data count bec
ua
se behavior needs to change when it's only one
// check data count bec
au
se behavior needs to change when it's only one
dataCount
=
getMaxDataCount
();
dataCount
=
getMaxDataCount
();
baseTarget
=
c3
.
data
.
targets
[
0
];
baseTarget
=
c3
.
data
.
targets
[
0
];
baseValue
=
baseTarget
.
values
[
0
];
baseValue
=
baseTarget
.
values
[
0
];
...
...
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