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
0a2f754b
Commit
0a2f754b
authored
Sep 09, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix connect_null to connectNull - #516 #81
parent
ce208470
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
c3.js
c3.js
+5
-5
c3.min.js
c3.min.js
+0
-0
config.js
src/config.js
+1
-1
shape.line.js
src/shape.line.js
+4
-4
No files found.
c3.js
View file @
0a2f754b
...
...
@@ -997,7 +997,7 @@
point_focus_expand_enabled
:
true
,
point_focus_expand_r
:
undefined
,
point_select_r
:
undefined
,
line_connect
_n
ull
:
false
,
line_connect
N
ull
:
false
,
// bar
bar_width
:
undefined
,
bar_width_ratio
:
0.6
,
...
...
@@ -2575,9 +2575,9 @@
};
line
=
config
.
axis_rotated
?
line
.
x
(
yValue
).
y
(
xValue
)
:
line
.
x
(
xValue
).
y
(
yValue
);
if
(
!
config
.
line_connect
_n
ull
)
{
line
=
line
.
defined
(
function
(
d
)
{
return
d
.
value
!=
null
;
});
}
if
(
!
config
.
line_connect
N
ull
)
{
line
=
line
.
defined
(
function
(
d
)
{
return
d
.
value
!=
null
;
});
}
return
function
(
d
)
{
var
data
=
config
.
line_connect
_n
ull
?
$$
.
filterRemoveNull
(
d
.
values
)
:
d
.
values
,
var
data
=
config
.
line_connect
N
ull
?
$$
.
filterRemoveNull
(
d
.
values
)
:
d
.
values
,
x
=
isSub
?
$$
.
x
:
$$
.
subX
,
y
=
yScaleGetter
.
call
(
$$
,
d
.
id
),
x0
=
0
,
y0
=
0
,
path
;
if
(
$$
.
isLineType
(
d
))
{
if
(
config
.
data_regions
[
d
.
id
])
{
...
...
@@ -2735,12 +2735,12 @@
};
area
=
config
.
axis_rotated
?
area
.
x0
(
value0
).
x1
(
value1
).
y
(
xValue
)
:
area
.
x
(
xValue
).
y0
(
value0
).
y1
(
value1
);
if
(
!
config
.
line_connect
_n
ull
)
{
if
(
!
config
.
line_connect
N
ull
)
{
area
=
area
.
defined
(
function
(
d
)
{
return
d
.
value
!==
null
;
});
}
return
function
(
d
)
{
var
data
=
config
.
line_connect
_n
ull
?
$$
.
filterRemoveNull
(
d
.
values
)
:
d
.
values
,
x0
=
0
,
y0
=
0
,
path
;
var
data
=
config
.
line_connect
N
ull
?
$$
.
filterRemoveNull
(
d
.
values
)
:
d
.
values
,
x0
=
0
,
y0
=
0
,
path
;
if
(
$$
.
isAreaType
(
d
))
{
path
=
area
.
interpolate
(
$$
.
getInterpolate
(
d
))(
data
);
}
else
{
...
...
c3.min.js
View file @
0a2f754b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/config.js
View file @
0a2f754b
...
...
@@ -131,7 +131,7 @@ c3_chart_internal_fn.getDefaultConfig = function () {
point_focus_expand_enabled
:
true
,
point_focus_expand_r
:
undefined
,
point_select_r
:
undefined
,
line_connect
_n
ull
:
false
,
line_connect
N
ull
:
false
,
// bar
bar_width
:
undefined
,
bar_width_ratio
:
0.6
,
...
...
src/shape.line.js
View file @
0a2f754b
...
...
@@ -70,9 +70,9 @@ c3_chart_internal_fn.generateDrawLine = function (lineIndices, isSub) {
};
line
=
config
.
axis_rotated
?
line
.
x
(
yValue
).
y
(
xValue
)
:
line
.
x
(
xValue
).
y
(
yValue
);
if
(
!
config
.
line_connect
_n
ull
)
{
line
=
line
.
defined
(
function
(
d
)
{
return
d
.
value
!=
null
;
});
}
if
(
!
config
.
line_connect
N
ull
)
{
line
=
line
.
defined
(
function
(
d
)
{
return
d
.
value
!=
null
;
});
}
return
function
(
d
)
{
var
data
=
config
.
line_connect
_n
ull
?
$$
.
filterRemoveNull
(
d
.
values
)
:
d
.
values
,
var
data
=
config
.
line_connect
N
ull
?
$$
.
filterRemoveNull
(
d
.
values
)
:
d
.
values
,
x
=
isSub
?
$$
.
x
:
$$
.
subX
,
y
=
yScaleGetter
.
call
(
$$
,
d
.
id
),
x0
=
0
,
y0
=
0
,
path
;
if
(
$$
.
isLineType
(
d
))
{
if
(
config
.
data_regions
[
d
.
id
])
{
...
...
@@ -230,12 +230,12 @@ c3_chart_internal_fn.generateDrawArea = function (areaIndices, isSub) {
};
area
=
config
.
axis_rotated
?
area
.
x0
(
value0
).
x1
(
value1
).
y
(
xValue
)
:
area
.
x
(
xValue
).
y0
(
value0
).
y1
(
value1
);
if
(
!
config
.
line_connect
_n
ull
)
{
if
(
!
config
.
line_connect
N
ull
)
{
area
=
area
.
defined
(
function
(
d
)
{
return
d
.
value
!==
null
;
});
}
return
function
(
d
)
{
var
data
=
config
.
line_connect
_n
ull
?
$$
.
filterRemoveNull
(
d
.
values
)
:
d
.
values
,
x0
=
0
,
y0
=
0
,
path
;
var
data
=
config
.
line_connect
N
ull
?
$$
.
filterRemoveNull
(
d
.
values
)
:
d
.
values
,
x0
=
0
,
y0
=
0
,
path
;
if
(
$$
.
isAreaType
(
d
))
{
path
=
area
.
interpolate
(
$$
.
getInterpolate
(
d
))(
data
);
}
else
{
...
...
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