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
a7cc082d
Commit
a7cc082d
authored
Jun 06, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stacking line with 0 value - #316
parent
eb3fb496
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
c3.js
c3.js
+1
-1
c3.min.js
c3.min.js
+0
-0
chart_area_spline_stacked.html
htdocs/samples/chart_area_spline_stacked.html
+6
-6
chart_area_stacked.html
htdocs/samples/chart_area_stacked.html
+6
-6
chart_bar_stacked.html
htdocs/samples/chart_bar_stacked.html
+1
-1
No files found.
c3.js
View file @
a7cc082d
...
...
@@ -2103,7 +2103,7 @@
y0
=
scale
(
0
),
offset
=
y0
;
targets
.
forEach
(
function
(
t
)
{
if
(
t
.
id
===
d
.
id
||
indices
[
t
.
id
]
!==
indices
[
d
.
id
])
{
return
;
}
if
(
targetIds
.
indexOf
(
t
.
id
)
<
targetIds
.
indexOf
(
d
.
id
)
&&
t
.
values
[
i
].
value
*
d
.
value
>
0
)
{
if
(
targetIds
.
indexOf
(
t
.
id
)
<
targetIds
.
indexOf
(
d
.
id
)
&&
t
.
values
[
i
].
value
*
d
.
value
>
=
0
)
{
offset
+=
scale
(
t
.
values
[
i
].
value
)
-
y0
;
}
});
...
...
c3.min.js
View file @
a7cc082d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
htdocs/samples/chart_area_spline_stacked.html
View file @
a7cc082d
...
...
@@ -15,8 +15,8 @@
bindto
:
'#chart1'
,
data
:
{
columns
:
[
[
'data1'
,
300
,
350
,
300
,
0
,
0
,
0
],
[
'data2'
,
130
,
100
,
140
,
200
,
150
,
50
]
[
'data1'
,
300
,
350
,
300
,
0
,
0
,
10
0
],
[
'data2'
,
130
,
0
,
140
,
200
,
0
,
50
],
],
type
:
'area-spline'
,
groups
:
[[
'data1'
,
'data2'
]],
...
...
@@ -27,8 +27,8 @@
bindto
:
'#chart2'
,
data
:
{
columns
:
[
[
'data1'
,
-
300
,
-
350
,
-
300
,
0
,
0
,
0
],
[
'data2'
,
-
130
,
-
100
,
-
140
,
-
200
,
-
15
0
,
-
50
]
[
'data1'
,
-
300
,
-
350
,
-
300
,
0
,
0
,
-
10
0
],
[
'data2'
,
-
130
,
0
,
-
140
,
-
200
,
0
,
-
50
]
],
type
:
'area-spline'
,
groups
:
[[
'data1'
,
'data2'
]],
...
...
@@ -39,8 +39,8 @@
bindto
:
'#chart3'
,
data
:
{
columns
:
[
[
'data1'
,
-
300
,
350
,
-
300
,
0
,
0
,
0
],
[
'data2'
,
-
130
,
-
10
0
,
140
,
-
200
,
150
,
-
50
]
[
'data1'
,
-
300
,
350
,
-
300
,
0
,
0
,
10
0
],
[
'data2'
,
-
130
,
0
,
140
,
-
200
,
150
,
-
50
]
],
type
:
'area-spline'
,
groups
:
[[
'data1'
,
'data2'
]],
...
...
htdocs/samples/chart_area_stacked.html
View file @
a7cc082d
...
...
@@ -15,8 +15,8 @@
bindto
:
'#chart1'
,
data
:
{
columns
:
[
[
'data1'
,
300
,
350
,
300
,
0
,
0
,
0
],
[
'data2'
,
130
,
100
,
140
,
200
,
150
,
50
]
[
'data1'
,
300
,
350
,
300
,
0
,
0
,
10
0
],
[
'data2'
,
130
,
0
,
140
,
200
,
0
,
50
],
],
type
:
'area'
,
groups
:
[[
'data1'
,
'data2'
]],
...
...
@@ -27,8 +27,8 @@
bindto
:
'#chart2'
,
data
:
{
columns
:
[
[
'data1'
,
-
300
,
-
350
,
-
300
,
0
,
0
,
0
],
[
'data2'
,
-
130
,
-
100
,
-
140
,
-
200
,
-
15
0
,
-
50
]
[
'data1'
,
-
300
,
-
350
,
-
300
,
0
,
0
,
-
10
0
],
[
'data2'
,
-
130
,
0
,
-
140
,
-
200
,
0
,
-
50
]
],
type
:
'area'
,
groups
:
[[
'data1'
,
'data2'
]],
...
...
@@ -39,8 +39,8 @@
bindto
:
'#chart3'
,
data
:
{
columns
:
[
[
'data1'
,
-
300
,
350
,
-
300
,
0
,
0
,
0
],
[
'data2'
,
-
130
,
-
10
0
,
140
,
-
200
,
150
,
-
50
]
[
'data1'
,
-
300
,
350
,
-
300
,
0
,
0
,
10
0
],
[
'data2'
,
-
130
,
0
,
140
,
-
200
,
150
,
-
50
]
],
type
:
'area'
,
groups
:
[[
'data1'
,
'data2'
]],
...
...
htdocs/samples/chart_bar_stacked.html
View file @
a7cc082d
...
...
@@ -13,7 +13,7 @@
columns
:
[
[
'data1'
,
30
,
200
,
200
,
400
,
150
,
-
250
],
[
'data2'
,
130
,
-
100
,
100
,
200
,
150
,
50
],
[
'data3'
,
230
,
-
200
,
200
,
30
0
,
250
,
250
]
[
'data3'
,
230
,
-
200
,
200
,
0
,
250
,
250
]
],
type
:
'bar'
,
groups
:
[
...
...
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