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
18feffab
Commit
18feffab
authored
May 24, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #264 from bjlbernal/patch-1
Update c3.js, getInterporate being used to fill interpolate value. ...porate vs ...polate
parents
5988709d
1fa6f238
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
c3.js
c3.js
+3
-3
No files found.
c3.js
View file @
18feffab
...
@@ -2256,7 +2256,7 @@
...
@@ -2256,7 +2256,7 @@
return
rect
;
return
rect
;
}
}
function
getInterpo
r
ate
(
d
)
{
function
getInterpo
l
ate
(
d
)
{
return
isSplineType
(
d
)
?
"cardinal"
:
isStepType
(
d
)
?
"step-after"
:
"linear"
;
return
isSplineType
(
d
)
?
"cardinal"
:
isStepType
(
d
)
?
"step-after"
:
"linear"
;
}
}
...
@@ -2365,7 +2365,7 @@
...
@@ -2365,7 +2365,7 @@
var
data
=
filterRemoveNull
(
d
.
values
),
x0
,
y0
;
var
data
=
filterRemoveNull
(
d
.
values
),
x0
,
y0
;
if
(
isAreaType
(
d
))
{
if
(
isAreaType
(
d
))
{
return
area
.
interpolate
(
getInterpo
r
ate
(
d
))(
data
);
return
area
.
interpolate
(
getInterpo
l
ate
(
d
))(
data
);
}
else
{
}
else
{
x0
=
x
(
data
[
0
].
x
);
x0
=
x
(
data
[
0
].
x
);
y0
=
getYScale
(
d
.
id
)(
data
[
0
].
value
);
y0
=
getYScale
(
d
.
id
)(
data
[
0
].
value
);
...
@@ -2392,7 +2392,7 @@
...
@@ -2392,7 +2392,7 @@
if
(
__data_regions
[
d
.
id
])
{
if
(
__data_regions
[
d
.
id
])
{
return
lineWithRegions
(
data
,
x
,
y
,
__data_regions
[
d
.
id
]);
return
lineWithRegions
(
data
,
x
,
y
,
__data_regions
[
d
.
id
]);
}
else
{
}
else
{
return
line
.
interpolate
(
getInterpo
r
ate
(
d
))(
data
);
return
line
.
interpolate
(
getInterpo
l
ate
(
d
))(
data
);
}
}
}
else
{
}
else
{
if
(
data
[
0
])
{
if
(
data
[
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