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
b556645b
Commit
b556645b
authored
May 05, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix axis z-index
parent
ab486bba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
34 deletions
+34
-34
c3.js
c3.js
+34
-34
No files found.
c3.js
View file @
b556645b
...
...
@@ -2522,40 +2522,6 @@
grid
.
append
(
'g'
).
attr
(
'class'
,
CLASS
.
ygridLines
);
}
// Add Axis
if
(
__axis_x_show
)
{
main
.
append
(
"g"
)
.
attr
(
"class"
,
CLASS
.
axisX
)
.
attr
(
"clip-path"
,
clipPathForXAxis
)
.
attr
(
"transform"
,
translate
.
x
)
.
append
(
"text"
)
.
attr
(
"class"
,
CLASS
.
axisXLabel
)
.
attr
(
"transform"
,
__axis_rotated
?
"rotate(-90)"
:
""
)
.
style
(
"text-anchor"
,
textAnchorForXAxisLabel
);
}
if
(
__axis_y_show
)
{
main
.
append
(
"g"
)
.
attr
(
"class"
,
CLASS
.
axisY
)
.
attr
(
"clip-path"
,
clipPathForYAxis
)
.
attr
(
"transform"
,
translate
.
y
)
.
append
(
"text"
)
.
attr
(
"class"
,
CLASS
.
axisYLabel
)
.
attr
(
"transform"
,
__axis_rotated
?
""
:
"rotate(-90)"
)
.
style
(
"text-anchor"
,
textAnchorForYAxisLabel
);
}
if
(
__axis_y2_show
)
{
main
.
append
(
"g"
)
.
attr
(
"class"
,
CLASS
.
axisY2
)
// clip-path?
.
attr
(
"transform"
,
translate
.
y2
)
.
append
(
"text"
)
.
attr
(
"class"
,
CLASS
.
axisY2Label
)
.
attr
(
"transform"
,
__axis_rotated
?
""
:
"rotate(-90)"
)
.
style
(
"text-anchor"
,
textAnchorForY2AxisLabel
);
}
// Regions
main
.
append
(
'g'
)
.
attr
(
"clip-path"
,
clipPath
)
...
...
@@ -2608,6 +2574,40 @@
brush
.
extent
(
typeof
__axis_x_default
!==
'function'
?
__axis_x_default
:
__axis_x_default
(
getXDomain
()));
}
// Add Axis
if
(
__axis_x_show
)
{
main
.
append
(
"g"
)
.
attr
(
"class"
,
CLASS
.
axisX
)
.
attr
(
"clip-path"
,
clipPathForXAxis
)
.
attr
(
"transform"
,
translate
.
x
)
.
append
(
"text"
)
.
attr
(
"class"
,
CLASS
.
axisXLabel
)
.
attr
(
"transform"
,
__axis_rotated
?
"rotate(-90)"
:
""
)
.
style
(
"text-anchor"
,
textAnchorForXAxisLabel
);
}
if
(
__axis_y_show
)
{
main
.
append
(
"g"
)
.
attr
(
"class"
,
CLASS
.
axisY
)
.
attr
(
"clip-path"
,
clipPathForYAxis
)
.
attr
(
"transform"
,
translate
.
y
)
.
append
(
"text"
)
.
attr
(
"class"
,
CLASS
.
axisYLabel
)
.
attr
(
"transform"
,
__axis_rotated
?
""
:
"rotate(-90)"
)
.
style
(
"text-anchor"
,
textAnchorForYAxisLabel
);
}
if
(
__axis_y2_show
)
{
main
.
append
(
"g"
)
.
attr
(
"class"
,
CLASS
.
axisY2
)
// clip-path?
.
attr
(
"transform"
,
translate
.
y2
)
.
append
(
"text"
)
.
attr
(
"class"
,
CLASS
.
axisY2Label
)
.
attr
(
"transform"
,
__axis_rotated
?
""
:
"rotate(-90)"
)
.
style
(
"text-anchor"
,
textAnchorForY2AxisLabel
);
}
/*-- Context Region --*/
// Define g for chart area
...
...
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