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
af9cdf6a
Commit
af9cdf6a
authored
Oct 19, 2013
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix zoom
parent
e92b76f6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
c3.js
c3.js
+12
-1
c3.min.js
c3.min.js
+0
-0
c3.min.js
htdocs/js/c3.min.js
+0
-0
No files found.
c3.js
View file @
af9cdf6a
...
...
@@ -903,6 +903,13 @@
.
call
(
yAxis2
);
}
main
.
append
(
'rect'
)
.
attr
(
'class'
,
'zoom-rect'
)
.
attr
(
'width'
,
width
)
.
attr
(
'height'
,
height
)
.
style
(
'opacity'
,
0
)
.
call
(
zoom
);
// Grids
grid
=
main
.
append
(
'g'
)
.
attr
(
"clip-path"
,
clipPath
)
...
...
@@ -1239,7 +1246,10 @@
withUpdateXDomain
=
isDefined
(
options
.
withUpdateXDomain
)
?
options
.
withUpdateXDomain
:
true
;
// ATTENTION: call here to update tickOffset
if
(
withUpdateXDomain
)
x
.
domain
(
brush
.
empty
()
?
subX
.
domain
()
:
brush
.
extent
());
if
(
withUpdateXDomain
)
{
x
.
domain
(
brush
.
empty
()
?
subX
.
domain
()
:
brush
.
extent
());
zoom
.
x
(
x
);
}
y
.
domain
(
getYDomain
(
c3
.
data
.
targets
,
'y'
));
y2
.
domain
(
getYDomain
(
c3
.
data
.
targets
,
'y2'
));
...
...
@@ -1434,6 +1444,7 @@
d3
.
select
(
'svg'
).
attr
(
'width'
,
width
+
margin
.
left
+
margin
.
right
);
d3
.
select
(
'#'
+
clipId
).
select
(
'rect'
).
attr
(
'width'
,
width
);
d3
.
select
(
'#xaxis-clip'
).
select
(
'rect'
).
attr
(
'width'
,
width
+
2
);
d3
.
select
(
'.zoom-rect'
).
attr
(
'width'
,
width
);
// Update Axis translate
d3
.
select
(
'g.y2.axis'
).
attr
(
"transform"
,
translateForY2
)
// Update legend
...
...
c3.min.js
View file @
af9cdf6a
This diff is collapsed.
Click to expand it.
htdocs/js/c3.min.js
View file @
af9cdf6a
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