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
05492968
Commit
05492968
authored
Feb 18, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix y grid lines
parent
6ab3a456
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
c3.js
c3.js
+12
-7
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
05492968
...
@@ -1873,7 +1873,7 @@
...
@@ -1873,7 +1873,7 @@
}
}
function
redraw
(
options
)
{
function
redraw
(
options
)
{
var
xgrid
,
xgridData
,
xgridLine
,
ygrid
;
var
xgrid
,
xgridData
,
xgridLine
s
,
ygrid
,
ygridLines
;
var
mainCircle
,
mainBar
,
mainRegion
,
contextBar
,
eventRectUpdate
;
var
mainCircle
,
mainBar
,
mainRegion
,
contextBar
,
eventRectUpdate
;
var
barIndices
=
getBarIndices
(),
barTargetsNum
=
barIndices
.
__max__
+
1
,
maxDataCountTarget
;
var
barIndices
=
getBarIndices
(),
barTargetsNum
=
barIndices
.
__max__
+
1
,
maxDataCountTarget
;
var
rectX
,
rectW
;
var
rectX
,
rectW
;
...
@@ -1950,13 +1950,14 @@
...
@@ -1950,13 +1950,14 @@
xgrid
.
exit
().
remove
();
xgrid
.
exit
().
remove
();
}
}
if
(
__grid_x_lines
)
{
if
(
__grid_x_lines
)
{
xgridLine
=
main
.
selectAll
(
".xgrid-lines"
);
xgridLines
=
main
.
selectAll
(
".xgrid-lines"
);
xgridLine
.
selectAll
(
'line'
)
xgridLines
.
selectAll
(
'line'
)
.
transition
().
duration
(
duration
)
.
attr
(
"x1"
,
__axis_rotated
?
0
:
xv
)
.
attr
(
"x1"
,
__axis_rotated
?
0
:
xv
)
.
attr
(
"x2"
,
__axis_rotated
?
width
:
xv
)
.
attr
(
"x2"
,
__axis_rotated
?
width
:
xv
)
.
attr
(
"y1"
,
__axis_rotated
?
xv
:
margin
.
top
)
.
attr
(
"y1"
,
__axis_rotated
?
xv
:
margin
.
top
)
.
attr
(
"y2"
,
__axis_rotated
?
xv
:
height
);
.
attr
(
"y2"
,
__axis_rotated
?
xv
:
height
);
xgridLine
.
selectAll
(
'text'
)
xgridLine
s
.
selectAll
(
'text'
)
.
attr
(
"x"
,
__axis_rotated
?
width
:
0
)
.
attr
(
"x"
,
__axis_rotated
?
width
:
0
)
.
attr
(
"y"
,
xv
);
.
attr
(
"y"
,
xv
);
}
}
...
@@ -1973,9 +1974,13 @@
...
@@ -1973,9 +1974,13 @@
ygrid
.
exit
().
remove
();
ygrid
.
exit
().
remove
();
}
}
if
(
withY
&&
__grid_y_lines
)
{
if
(
withY
&&
__grid_y_lines
)
{
main
.
select
(
'.ygrid-lines'
).
selectAll
(
'.ygrid-line'
)
ygridLines
=
main
.
select
(
'.ygrid-lines'
);
.
attr
(
"y1"
,
yv
)
ygridLines
.
selectAll
(
'line'
)
.
attr
(
"y2"
,
yv
);
.
transition
().
duration
(
duration
)
.
attr
(
"x1"
,
__axis_rotated
?
yv
:
0
)
.
attr
(
"x2"
,
__axis_rotated
?
yv
:
width
)
.
attr
(
"y1"
,
__axis_rotated
?
0
:
yv
)
.
attr
(
"y2"
,
__axis_rotated
?
height
:
yv
);
}
}
// bars
// bars
...
...
c3.min.js
View file @
05492968
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