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
9a6c3b3e
Commit
9a6c3b3e
authored
Mar 29, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix option for additional grid lines
parent
d403da03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
c3.js
c3.js
+6
-6
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
9a6c3b3e
...
...
@@ -184,11 +184,11 @@
// grid
var
__grid_x_show
=
getConfig
([
'grid'
,
'x'
,
'show'
],
false
),
__grid_x_type
=
getConfig
([
'grid'
,
'x'
,
'type'
],
'tick'
),
__grid_x_lines
=
getConfig
([
'grid'
,
'x'
,
'lines'
]),
__grid_x_lines
=
getConfig
([
'grid'
,
'x'
,
'lines'
]
,
[]
),
__grid_y_show
=
getConfig
([
'grid'
,
'y'
,
'show'
],
false
),
// not used
// __grid_y_type = getConfig(['grid', 'y', 'type'], 'tick'),
__grid_y_lines
=
getConfig
([
'grid'
,
'y'
,
'lines'
]),
__grid_y_lines
=
getConfig
([
'grid'
,
'y'
,
'lines'
]
,
[]
),
__grid_y_ticks
=
getConfig
([
'grid'
,
'y'
,
'ticks'
],
10
);
// point - point of each data
...
...
@@ -2285,7 +2285,7 @@
if
(
__grid_x_show
)
{
grid
.
append
(
"g"
).
attr
(
"class"
,
CLASS
.
xgrids
);
}
if
(
__grid_x_lines
)
{
if
(
!
isEmpty
(
__grid_x_lines
)
)
{
grid
.
append
(
'g'
).
attr
(
"class"
,
CLASS
.
xgridLines
);
}
if
(
__point_focus_line_enabled
)
{
...
...
@@ -2303,7 +2303,7 @@
if
(
__grid_y_show
)
{
grid
.
append
(
'g'
).
attr
(
'class'
,
CLASS
.
ygrids
);
}
if
(
__grid_y_lines
)
{
if
(
!
isEmpty
(
__grid_y_lines
)
)
{
grid
.
append
(
'g'
).
attr
(
'class'
,
CLASS
.
ygridLines
);
}
...
...
@@ -2788,7 +2788,7 @@
.
style
(
"opacity"
,
function
()
{
return
+
d3
.
select
(
this
).
attr
(
__axis_rotated
?
'y1'
:
'x1'
)
===
(
__axis_rotated
?
height
:
0
)
?
0
:
1
;
});
xgrid
.
exit
().
remove
();
}
if
(
__grid_x_lines
)
{
if
(
!
isEmpty
(
__grid_x_lines
)
)
{
xgridLines
=
main
.
select
(
'.'
+
CLASS
.
xgridLines
).
selectAll
(
'.'
+
CLASS
.
xgridLine
)
.
data
(
__grid_x_lines
);
// enter
...
...
@@ -2833,7 +2833,7 @@
.
attr
(
"y2"
,
__axis_rotated
?
height
:
y
);
ygrid
.
exit
().
remove
();
}
if
(
withY
&&
__grid_y_lines
)
{
if
(
withY
&&
!
isEmpty
(
__grid_y_lines
)
)
{
ygridLines
=
main
.
select
(
'.'
+
CLASS
.
ygridLines
).
selectAll
(
'.'
+
CLASS
.
ygridLine
)
.
data
(
__grid_y_lines
);
// enter
...
...
c3.min.js
View file @
9a6c3b3e
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