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
3a217e7f
Commit
3a217e7f
authored
Dec 02, 2015
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add grid even if not added. Fixes problem with updating them later
parent
e7ca0162
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
c3.js
c3.js
+6
-6
c3.min.js
c3.min.js
+0
-0
api.grid.js
src/api.grid.js
+2
-2
grid.js
src/grid.js
+4
-4
No files found.
c3.js
View file @
3a217e7f
...
...
@@ -3701,12 +3701,12 @@
$$
.
grid
=
$$
.
main
.
append
(
'g'
)
.
attr
(
"clip-path"
,
$$
.
clipPathForGrid
)
.
attr
(
'class'
,
CLASS
.
grid
);
if
(
config
.
grid_x_show
)
{
//
if (config.grid_x_show) {
$$
.
grid
.
append
(
"g"
).
attr
(
"class"
,
CLASS
.
xgrids
);
}
if
(
config
.
grid_y_show
)
{
//
}
//
if (config.grid_y_show) {
$$
.
grid
.
append
(
'g'
).
attr
(
'class'
,
CLASS
.
ygrids
);
}
//
}
if
(
config
.
grid_focus_show
)
{
$$
.
grid
.
append
(
'g'
)
.
attr
(
"class"
,
CLASS
.
xgridFocus
)
...
...
@@ -7473,7 +7473,7 @@
var
gridx
=
$$
.
xgrid
[
0
];
for
(
var
id
in
gridx
)
{
if
(
gridx
[
id
]){
gridx
[
id
].
style
.
display
=
""
;
gridx
[
id
].
style
.
display
=
"
block
"
;
}
}
...
...
@@ -7514,7 +7514,7 @@
var
gridy
=
$$
.
ygrid
[
0
];
for
(
var
id
in
gridy
)
{
gridy
[
id
].
style
.
display
=
""
;
gridy
[
id
].
style
.
display
=
"
block
"
;
}
$$
.
updateAndRedraw
({
withLegend
:
true
});
...
...
c3.min.js
View file @
3a217e7f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/api.grid.js
View file @
3a217e7f
...
...
@@ -46,7 +46,7 @@ c3_chart_fn.gridX.show = function() {
var
gridx
=
$$
.
xgrid
[
0
];
for
(
var
id
in
gridx
)
{
if
(
gridx
[
id
]){
gridx
[
id
].
style
.
display
=
""
;
gridx
[
id
].
style
.
display
=
"
block
"
;
}
}
...
...
@@ -87,7 +87,7 @@ c3_chart_fn.gridY.show = function() {
var
gridy
=
$$
.
ygrid
[
0
];
for
(
var
id
in
gridy
)
{
gridy
[
id
].
style
.
display
=
""
;
gridy
[
id
].
style
.
display
=
"
block
"
;
}
$$
.
updateAndRedraw
({
withLegend
:
true
});
...
...
src/grid.js
View file @
3a217e7f
...
...
@@ -3,12 +3,12 @@ c3_chart_internal_fn.initGrid = function () {
$$
.
grid
=
$$
.
main
.
append
(
'g'
)
.
attr
(
"clip-path"
,
$$
.
clipPathForGrid
)
.
attr
(
'class'
,
CLASS
.
grid
);
if
(
config
.
grid_x_show
)
{
//
if (config.grid_x_show) {
$$
.
grid
.
append
(
"g"
).
attr
(
"class"
,
CLASS
.
xgrids
);
}
if
(
config
.
grid_y_show
)
{
//
}
//
if (config.grid_y_show) {
$$
.
grid
.
append
(
'g'
).
attr
(
'class'
,
CLASS
.
ygrids
);
}
//
}
if
(
config
.
grid_focus_show
)
{
$$
.
grid
.
append
(
'g'
)
.
attr
(
"class"
,
CLASS
.
xgridFocus
)
...
...
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