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
51f2776a
Commit
51f2776a
authored
Apr 05, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix xgrid focus length when reized - #124
parent
f7f94b33
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
c3.js
c3.js
+11
-5
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
51f2776a
...
...
@@ -402,6 +402,13 @@
margin3
.
left
=
width
/
2
+
radiusExpanded
;
}
}
function
updateXgridFocus
()
{
main
.
select
(
'line.'
+
CLASS
.
xgridFocus
)
.
attr
(
"x1"
,
__axis_rotated
?
0
:
-
10
)
.
attr
(
"x2"
,
__axis_rotated
?
width
:
-
10
)
.
attr
(
"y1"
,
__axis_rotated
?
-
10
:
margin
.
top
)
.
attr
(
"y2"
,
__axis_rotated
?
-
10
:
height
);
}
function
updateRadius
()
{
radiusExpanded
=
height
/
2
;
radius
=
radiusExpanded
*
0.95
;
...
...
@@ -2431,11 +2438,7 @@
grid
.
append
(
'g'
)
.
attr
(
"class"
,
CLASS
.
xgridFocus
)
.
append
(
'line'
)
.
attr
(
'class'
,
CLASS
.
xgridFocus
)
.
attr
(
"x1"
,
__axis_rotated
?
0
:
-
10
)
.
attr
(
"x2"
,
__axis_rotated
?
width
:
-
10
)
.
attr
(
"y1"
,
__axis_rotated
?
-
10
:
margin
.
top
)
.
attr
(
"y2"
,
__axis_rotated
?
-
10
:
height
);
.
attr
(
'class'
,
CLASS
.
xgridFocus
);
}
// Y-Grid
...
...
@@ -2947,6 +2950,9 @@
// tooltip
tooltip
.
style
(
"display"
,
"none"
);
// xgrid focus
updateXgridFocus
();
// grid
main
.
select
(
'line.'
+
CLASS
.
xgridFocus
).
style
(
"visibility"
,
"hidden"
);
if
(
__grid_x_show
)
{
...
...
c3.min.js
View file @
51f2776a
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