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
05fea785
Commit
05fea785
authored
Aug 22, 2016
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix margin issue
parent
22e03ae3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
93 deletions
+8
-93
_SpecRunner.html
_SpecRunner.html
+0
-85
c3.js
c3.js
+4
-4
axis.js
src/axis.js
+4
-4
No files found.
_SpecRunner.html
deleted
100644 → 0
View file @
22e03ae3
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
Jasmine Spec Runner
</title>
<link
rel=
"shortcut icon"
type=
"image/png"
href=
".grunt/grunt-contrib-jasmine/jasmine_favicon.png"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
".grunt/grunt-contrib-jasmine/jasmine.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"c3.css"
>
</head>
<body>
<script
src=
".grunt/grunt-contrib-jasmine/es5-shim.js"
></script>
<script
src=
".grunt/grunt-contrib-jasmine/jasmine.js"
></script>
<script
src=
".grunt/grunt-contrib-jasmine/jasmine-html.js"
></script>
<script
src=
".grunt/grunt-contrib-jasmine/json2.js"
></script>
<script
src=
".grunt/grunt-contrib-jasmine/boot.js"
></script>
<script
src=
"bower_components/d3/d3.js"
></script>
<script
src=
"bower_components/async-buffer/index.js"
></script>
<script
src=
"spec/c3-helper.js"
></script>
<script
src=
"c3.js"
></script>
<script
src=
"spec/api.chart-spec.js"
></script>
<script
src=
"spec/api.color-spec.js"
></script>
<script
src=
"spec/api.data-spec.js"
></script>
<script
src=
"spec/api.grid-spec.js"
></script>
<script
src=
"spec/api.load-spec.js"
></script>
<script
src=
"spec/api.zoom-spec.js"
></script>
<script
src=
"spec/arc-spec.js"
></script>
<script
src=
"spec/axis-spec.js"
></script>
<script
src=
"spec/c3-spec.js"
></script>
<script
src=
"spec/class-spec.js"
></script>
<script
src=
"spec/core-spec.js"
></script>
<script
src=
"spec/data-spec.js"
></script>
<script
src=
"spec/domain-spec.js"
></script>
<script
src=
"spec/grid-spec.js"
></script>
<script
src=
"spec/interaction-spec.js"
></script>
<script
src=
"spec/legend-spec.js"
></script>
<script
src=
"spec/markers-spec.js"
></script>
<script
src=
"spec/shape.bar-spec.js"
></script>
<script
src=
"spec/shape.line-spec.js"
></script>
<script
src=
"spec/stacked-spec.js"
></script>
<script
src=
"spec/tooltip-spec.js"
></script>
<script
src=
"spec/type-spec.js"
></script>
<script
src=
"spec/zoom-spec.js"
></script>
<script
src=
".grunt/grunt-contrib-jasmine/reporter.js"
></script>
</body>
</html>
c3.js
View file @
05fea785
...
...
@@ -5152,11 +5152,11 @@
// Excel shortens ticks the way so they don't take more than half of all chart
if
(
$$
.
config
.
axis_rotated
){
var
widthPadding
=
margin
.
left
+
margin
.
right
;
return
(
$$
.
getCurrentWidth
()
-
widthPadding
)
/
2
;
var
widthPadding
=
-
60
;
return
(
$$
.
getCurrentWidth
()
+
widthPadding
)
/
2
;
}
else
{
var
heightPadding
=
margin
.
top
+
margin
.
bottom
;
return
(
$$
.
getCurrentHeight
()
-
heightPadding
)
/
2
;
var
heightPadding
=
-
60
;
return
(
$$
.
getCurrentHeight
()
+
heightPadding
)
/
2
;
}
};
...
...
src/axis.js
View file @
05fea785
...
...
@@ -517,11 +517,11 @@ c3_chart_internal_fn.getSizeCoef = function(){
// Excel shortens ticks the way so they don't take more than half of all chart
if
(
$$
.
config
.
axis_rotated
){
var
widthPadding
=
margin
.
left
+
margin
.
right
;
return
(
$$
.
getCurrentWidth
()
-
widthPadding
)
/
2
;
var
widthPadding
=
-
60
;
return
(
$$
.
getCurrentWidth
()
+
widthPadding
)
/
2
;
}
else
{
var
heightPadding
=
margin
.
top
+
margin
.
bottom
;
return
(
$$
.
getCurrentHeight
()
-
heightPadding
)
/
2
;
var
heightPadding
=
-
60
;
return
(
$$
.
getCurrentHeight
()
+
heightPadding
)
/
2
;
}
};
...
...
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