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
53a4d3f9
Commit
53a4d3f9
authored
May 21, 2013
by
Masayuki Tanaka
Committed by
masayuki
May 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix axis transition
parent
bdbb8032
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
c3.js
c3.js
+2
-4
No files found.
c3.js
View file @
53a4d3f9
...
@@ -1092,14 +1092,12 @@
...
@@ -1092,14 +1092,12 @@
withY
=
(
typeof
withY
===
'undefined'
)
?
false
:
withY
withY
=
(
typeof
withY
===
'undefined'
)
?
false
:
withY
withSubchart
=
(
typeof
withSubchart
===
'undefined'
)
?
false
:
withSubchart
withSubchart
=
(
typeof
withSubchart
===
'undefined'
)
?
false
:
withSubchart
// ticks for x-axis
// ATTENTION: call here to update tickOffset
// ATTENTION: call here to update tickOffset
x
.
domain
(
brush
.
empty
()
?
subX
.
domain
()
:
brush
.
extent
())
x
.
domain
(
brush
.
empty
()
?
subX
.
domain
()
:
brush
.
extent
())
main
.
selectAll
(
".x.axis"
).
call
(
__axis_rotated
?
yAxis
:
xAxis
)
// Update main domains
y
.
domain
(
getYDomain
(
c3
.
data
.
targets
,
'y'
))
y
.
domain
(
getYDomain
(
c3
.
data
.
targets
,
'y'
))
y2
.
domain
(
getYDomain
(
c3
.
data
.
targets
,
'y2'
))
y2
.
domain
(
getYDomain
(
c3
.
data
.
targets
,
'y2'
))
main
.
selectAll
(
".x.axis"
).
transition
().
duration
(
__axis_rotated
?
250
:
0
).
call
(
__axis_rotated
?
yAxis
:
xAxis
)
main
.
selectAll
(
".y.axis"
).
transition
().
duration
(
__axis_rotated
?
0
:
250
).
call
(
__axis_rotated
?
xAxis
:
yAxis
)
main
.
selectAll
(
".y.axis"
).
transition
().
duration
(
__axis_rotated
?
0
:
250
).
call
(
__axis_rotated
?
xAxis
:
yAxis
)
main
.
selectAll
(
".y2.axis"
).
transition
().
call
(
yAxis2
)
main
.
selectAll
(
".y2.axis"
).
transition
().
call
(
yAxis2
)
...
...
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