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
Evgeny
c3-closed
Commits
d209f3d6
Commit
d209f3d6
authored
Mar 21, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix padding left when rotated
parent
114fb230
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
c3.js
c3.js
+9
-4
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
d209f3d6
...
...
@@ -333,7 +333,7 @@
}
else
if
(
__padding_left
)
{
return
__padding_left
;
}
else
{
return
__axis_y_inner
?
1
:
getAxisWidthByAxisId
(
'y'
);
return
__axis_
rotated
||
__axis_
y_inner
?
1
:
getAxisWidthByAxisId
(
'y'
);
}
}
function
getCurrentPaddingRight
()
{
...
...
@@ -561,13 +561,13 @@
};
}
function
getXAxisLabelPosition
()
{
return
getAxisLabelPosition
(
__axis_x_label
,
'inner-right'
);
return
getAxisLabelPosition
(
__axis_x_label
,
__axis_rotated
?
'inner-top'
:
'inner-right'
);
}
function
getYAxisLabelPosition
()
{
return
getAxisLabelPosition
(
__axis_y_label
,
'inner-top'
);
return
getAxisLabelPosition
(
__axis_y_label
,
__axis_rotated
?
'inner-right'
:
'inner-top'
);
}
function
getY2AxisLabelPosition
()
{
return
getAxisLabelPosition
(
__axis_y2_label
,
'inner-top'
);
return
getAxisLabelPosition
(
__axis_y2_label
,
__axis_rotated
?
'inner-right'
:
'inner-top'
);
}
function
getAxisLabelPositionById
(
id
)
{
return
id
===
'y2'
?
getY2AxisLabelPosition
()
:
id
===
'y'
?
getYAxisLabelPosition
()
:
getXAxisLabelPosition
();
...
...
@@ -611,6 +611,9 @@
function
xForY2AxisLabel
()
{
return
xForAxisLabel
(
__axis_rotated
,
getY2AxisLabelPosition
());
}
function
dxForXAxisLabel
()
{
return
dxForAxisLabel
(
!
__axis_rotated
,
getXAxisLabelPosition
());
}
function
dxForYAxisLabel
()
{
return
dxForAxisLabel
(
__axis_rotated
,
getYAxisLabelPosition
());
}
...
...
@@ -1962,6 +1965,7 @@
.
append
(
"text"
)
.
attr
(
"class"
,
"-axis-x-label"
)
.
attr
(
"transform"
,
__axis_rotated
?
"rotate(-90)"
:
""
)
.
attr
(
"dx"
,
dxForXAxisLabel
)
.
attr
(
"dy"
,
dyForXAxisLabel
)
.
style
(
"text-anchor"
,
textAnchorForXAxisLabel
)
.
text
(
textForXAxisLabel
);
...
...
@@ -1972,6 +1976,7 @@
.
attr
(
"class"
,
"-axis-y-label"
)
.
attr
(
"transform"
,
__axis_rotated
?
""
:
"rotate(-90)"
)
.
attr
(
"dx"
,
dxForYAxisLabel
)
.
attr
(
"dy"
,
dyForYAxisLabel
)
.
style
(
"text-anchor"
,
textAnchorForYAxisLabel
)
.
text
(
textForYAxisLabel
);
...
...
c3.min.js
View file @
d209f3d6
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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