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
c08d031c
Commit
c08d031c
authored
Jan 28, 2014
by
mikhail samoilov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fill area chart to y coordinate axis, not to char boundary
parent
2fa9ce38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
c3.js
c3.js
+14
-4
No files found.
c3.js
View file @
c08d031c
...
@@ -791,10 +791,20 @@
...
@@ -791,10 +791,20 @@
})();
})();
var
areaOnMain
=
(
function
()
{
var
areaOnMain
=
(
function
()
{
var
area
=
d3
.
svg
.
area
()
var
area
;
.
x
(
__axis_rotated
?
function
(
d
)
{
return
getYScale
(
d
.
id
)(
d
.
value
);
}
:
xx
)
.
y0
(
__axis_rotated
?
getCurrentWidth
()
:
getCurrentHeight
())
if
(
__axis_rotated
)
{
.
y1
(
__axis_rotated
?
xx
:
function
(
d
)
{
return
getYScale
(
d
.
id
)(
d
.
value
);
});
area
=
d3
.
svg
.
area
()
.
x0
(
function
(
d
)
{
return
getYScale
(
d
.
id
)(
0
);
})
.
x1
(
function
(
d
)
{
return
getYScale
(
d
.
id
)(
d
.
value
);
})
.
y
(
xx
);
}
else
{
area
=
d3
.
svg
.
area
()
.
x
(
xx
)
.
y0
(
function
(
d
)
{
return
getYScale
(
d
.
id
)(
0
);
})
.
y1
(
function
(
d
)
{
return
getYScale
(
d
.
id
)(
d
.
value
);
});
}
return
function
(
d
)
{
return
function
(
d
)
{
var
data
=
filterRemoveNull
(
d
.
values
),
x0
,
y0
;
var
data
=
filterRemoveNull
(
d
.
values
),
x0
,
y0
;
...
...
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