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
74140c82
Commit
74140c82
authored
Dec 25, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add internal function for area base value - #829
parent
bbab3346
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
c3.js
c3.js
+4
-2
c3.min.js
c3.min.js
+0
-0
shape.line.js
src/shape.line.js
+4
-2
No files found.
c3.js
View file @
74140c82
...
...
@@ -2899,7 +2899,7 @@
yScaleGetter
=
isSub
?
$$
.
getSubYScale
:
$$
.
getYScale
,
xValue
=
function
(
d
)
{
return
(
isSub
?
$$
.
subxx
:
$$
.
xx
).
call
(
$$
,
d
);
},
value0
=
function
(
d
,
i
)
{
return
config
.
data_groups
.
length
>
0
?
getPoints
(
d
,
i
)[
0
][
1
]
:
yScaleGetter
.
call
(
$$
,
d
.
id
)(
0
);
return
config
.
data_groups
.
length
>
0
?
getPoints
(
d
,
i
)[
0
][
1
]
:
yScaleGetter
.
call
(
$$
,
d
.
id
)(
$$
.
getAreaBaseValue
(
d
.
id
)
);
},
value1
=
function
(
d
,
i
)
{
return
config
.
data_groups
.
length
>
0
?
getPoints
(
d
,
i
)[
1
][
1
]
:
yScaleGetter
.
call
(
$$
,
d
.
id
)(
d
.
value
);
...
...
@@ -2926,7 +2926,9 @@
return
path
?
path
:
"M 0 0"
;
};
};
c3_chart_internal_fn
.
getAreaBaseValue
=
function
()
{
return
0
;
};
c3_chart_internal_fn
.
generateGetAreaPoints
=
function
(
areaIndices
,
isSub
)
{
// partial duplication of generateGetBarPoints
var
$$
=
this
,
config
=
$$
.
config
,
areaTargetsNum
=
areaIndices
.
__max__
+
1
,
...
...
c3.min.js
View file @
74140c82
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/shape.line.js
View file @
74140c82
...
...
@@ -226,7 +226,7 @@ c3_chart_internal_fn.generateDrawArea = function (areaIndices, isSub) {
yScaleGetter
=
isSub
?
$$
.
getSubYScale
:
$$
.
getYScale
,
xValue
=
function
(
d
)
{
return
(
isSub
?
$$
.
subxx
:
$$
.
xx
).
call
(
$$
,
d
);
},
value0
=
function
(
d
,
i
)
{
return
config
.
data_groups
.
length
>
0
?
getPoints
(
d
,
i
)[
0
][
1
]
:
yScaleGetter
.
call
(
$$
,
d
.
id
)(
0
);
return
config
.
data_groups
.
length
>
0
?
getPoints
(
d
,
i
)[
0
][
1
]
:
yScaleGetter
.
call
(
$$
,
d
.
id
)(
$$
.
getAreaBaseValue
(
d
.
id
)
);
},
value1
=
function
(
d
,
i
)
{
return
config
.
data_groups
.
length
>
0
?
getPoints
(
d
,
i
)[
1
][
1
]
:
yScaleGetter
.
call
(
$$
,
d
.
id
)(
d
.
value
);
...
...
@@ -253,7 +253,9 @@ c3_chart_internal_fn.generateDrawArea = function (areaIndices, isSub) {
return
path
?
path
:
"M 0 0"
;
};
};
c3_chart_internal_fn
.
getAreaBaseValue
=
function
()
{
return
0
;
};
c3_chart_internal_fn
.
generateGetAreaPoints
=
function
(
areaIndices
,
isSub
)
{
// partial duplication of generateGetBarPoints
var
$$
=
this
,
config
=
$$
.
config
,
areaTargetsNum
=
areaIndices
.
__max__
+
1
,
...
...
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