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
b05ce00e
Commit
b05ce00e
authored
May 28, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix grid.x.lines on flow
parent
a2ab8593
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
c3.js
c3.js
+21
-13
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
b05ce00e
...
...
@@ -3513,19 +3513,7 @@
.
attr
(
'dy'
,
-
5
)
.
style
(
"opacity"
,
0
);
// udpate
xgridLines
.
select
(
'line'
)
.
transition
().
duration
(
duration
)
.
attr
(
"x1"
,
__axis_rotated
?
0
:
xv
)
.
attr
(
"x2"
,
__axis_rotated
?
width
:
xv
)
.
attr
(
"y1"
,
__axis_rotated
?
xv
:
margin
.
top
)
.
attr
(
"y2"
,
__axis_rotated
?
xv
:
height
)
.
style
(
"opacity"
,
1
);
xgridLines
.
select
(
'text'
)
.
transition
().
duration
(
duration
)
.
attr
(
"x"
,
__axis_rotated
?
width
:
0
)
.
attr
(
"y"
,
xv
)
.
text
(
function
(
d
)
{
return
d
.
text
;
})
.
style
(
"opacity"
,
1
);
// done in d3.transition() of the end of this function
// exit
xgridLines
.
exit
().
transition
().
duration
(
duration
)
.
style
(
"opacity"
,
0
)
...
...
@@ -3930,6 +3918,17 @@
waitForDraw
.
add
(
main
.
selectAll
(
'.'
+
CLASS
.
selectedCircle
).
transition
()
.
attr
(
"cx"
,
__axis_rotated
?
circleY
:
circleX
)
.
attr
(
"cy"
,
__axis_rotated
?
circleX
:
circleY
));
waitForDraw
.
add
(
xgridLines
.
select
(
'line'
).
transition
()
.
attr
(
"x1"
,
__axis_rotated
?
0
:
xv
)
.
attr
(
"x2"
,
__axis_rotated
?
width
:
xv
)
.
attr
(
"y1"
,
__axis_rotated
?
xv
:
margin
.
top
)
.
attr
(
"y2"
,
__axis_rotated
?
xv
:
height
)
.
style
(
"opacity"
,
1
));
waitForDraw
.
add
(
xgridLines
.
select
(
'text'
).
transition
()
.
attr
(
"x"
,
__axis_rotated
?
width
:
0
)
.
attr
(
"y"
,
xv
)
.
text
(
function
(
d
)
{
return
d
.
text
;
})
.
style
(
"opacity"
,
1
));
})
.
call
(
waitForDraw
,
options
.
flow
?
function
()
{
// only for flow
var
translateX
,
scaleX
=
1
,
transform
,
...
...
@@ -3963,6 +3962,7 @@
wait
.
add
(
mainArea
.
transition
().
attr
(
'transform'
,
transform
));
wait
.
add
(
mainCircle
.
transition
().
attr
(
'transform'
,
transform
));
wait
.
add
(
xgrid
.
transition
().
attr
(
'transform'
,
transform
));
wait
.
add
(
xgridLines
.
transition
().
attr
(
'transform'
,
transform
));
})
.
call
(
wait
,
function
()
{
var
i
,
targets
=
[],
eventRects
=
[];
...
...
@@ -3979,6 +3979,14 @@
// draw again for removing flowed elements and reverting attr
xgrid
.
attr
(
'transform'
,
null
);
xgridLines
.
attr
(
'transform'
,
null
);
xgridLines
.
select
(
'line'
)
.
attr
(
"x1"
,
__axis_rotated
?
0
:
xv
)
.
attr
(
"x2"
,
__axis_rotated
?
width
:
xv
);
xgridLines
.
select
(
'text'
)
.
attr
(
"x"
,
__axis_rotated
?
width
:
0
)
.
attr
(
"y"
,
xv
);
mainBar
.
attr
(
'transform'
,
null
)
.
attr
(
"d"
,
drawBar
);
...
...
c3.min.js
View file @
b05ce00e
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