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
d0bfce0c
Commit
d0bfce0c
authored
May 22, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove zeropadding option - #254
parent
a13b72a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
c3.js
c3.js
+0
-7
No files found.
c3.js
View file @
d0bfce0c
...
...
@@ -228,8 +228,6 @@
__axis_y2_padding
=
getConfig
([
'axis'
,
'y2'
,
'padding'
]),
__axis_y2_ticks
=
getConfig
([
'axis'
,
'y2'
,
'ticks'
],
10
);
var
__zero_padding
=
getConfig
([
'zeropadding'
],
false
);
// grid
var
__grid_x_show
=
getConfig
([
'grid'
,
'x'
,
'show'
],
false
),
__grid_x_type
=
getConfig
([
'grid'
,
'x'
,
'type'
],
'tick'
),
...
...
@@ -1229,9 +1227,6 @@
if
(
hasBarType
(
yTargets
)
&&
!
hasNegativeValueInTargets
(
yTargets
))
{
padding_bottom
=
yDomainMin
;
}
if
(
__zero_padding
&&
!
hasNegativeValueInTargets
(
yTargets
))
{
padding_bottom
-=
padding_bottom
;
}
return
[
yDomainMin
-
padding_bottom
,
yDomainMax
+
padding_top
];
}
function
getXDomainMin
(
targets
)
{
...
...
@@ -1248,8 +1243,6 @@
}
else
if
(
hasBarType
(
targets
))
{
maxDataCount
=
getMaxDataCount
();
padding
=
maxDataCount
>
1
?
(
diff
/
(
maxDataCount
-
1
))
/
2
:
0.5
;
}
else
if
(
__zero_padding
)
{
padding
=
diff
*
0.001
;
}
else
{
padding
=
diff
*
0.01
;
}
...
...
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