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
8ec30306
Commit
8ec30306
authored
Jan 31, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix x grid when rotated
parent
93f9853b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
c3.js
c3.js
+5
-6
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
8ec30306
...
...
@@ -1444,13 +1444,12 @@
xgrid
=
main
.
select
(
'.xgrids'
).
selectAll
(
".xgrid"
)
.
data
(
xgridData
);
xgrid
.
enter
().
append
(
'line'
).
attr
(
"class"
,
"xgrid"
);
xgrid
.
attr
(
"x1"
,
__axis_rotated
?
0
:
function
(
d
)
{
return
x
(
d
)
-
xAxis
.
tickOffset
();
})
.
attr
(
"x2"
,
__axis_rotated
?
width
:
function
(
d
)
{
return
x
(
d
)
-
xAxis
.
tickOffset
();
})
.
attr
(
"y1"
,
__axis_rotated
?
function
(
d
)
{
return
x
(
d
)
-
xAxis
.
tickOffset
();
}
:
margin
.
top
)
.
attr
(
"y2"
,
__axis_rotated
?
function
(
d
)
{
return
x
(
d
)
-
xAxis
.
tickOffset
();
}
:
height
)
.
style
(
"opacity"
,
function
()
{
return
+
d3
.
select
(
this
).
attr
(
__axis_rotated
?
'y1'
:
'x1'
)
===
(
__axis_rotated
?
height
:
0
)
?
0
:
1
;
});
xgrid
.
exit
().
remove
();
main
.
selectAll
(
".xgrid"
)
.
attr
(
"x1"
,
function
(
d
)
{
return
x
(
d
)
-
xAxis
.
tickOffset
();
})
.
attr
(
"x2"
,
function
(
d
)
{
return
x
(
d
)
-
xAxis
.
tickOffset
();
})
.
attr
(
"y1"
,
margin
.
top
)
.
attr
(
"y2"
,
height
)
.
style
(
"opacity"
,
function
()
{
return
d3
.
select
(
this
).
attr
(
'x1'
)
===
0
?
0
:
1
;
});
}
if
(
__grid_x_lines
)
{
xgridLine
=
main
.
selectAll
(
".xgrid-lines"
);
...
...
c3.min.js
View file @
8ec30306
This diff is collapsed.
Click to expand it.
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