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
cd43dfc3
Commit
cd43dfc3
authored
Jul 23, 2016
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chart.axis* API. Return 19100.config.axis_*_show if value === undefined
parent
100ea2c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
c3.js
c3.js
+14
-0
c3.min.js
c3.min.js
+0
-0
api.axis.js
src/api.axis.js
+12
-0
No files found.
c3.js
View file @
cd43dfc3
...
@@ -7957,6 +7957,10 @@
...
@@ -7957,6 +7957,10 @@
c3_chart_fn
.
axisX
=
function
(
value
){
c3_chart_fn
.
axisX
=
function
(
value
){
var
$$
=
this
.
internal
;
var
$$
=
this
.
internal
;
if
(
value
===
undefined
){
return
$$
.
config
.
axis_x_show
;
}
$$
.
config
.
axis_x_show
=
!!
value
;
$$
.
config
.
axis_x_show
=
!!
value
;
$$
.
axes
.
x
.
style
(
"visibility"
,
$$
.
config
.
axis_x_show
?
'visible'
:
'hidden'
);
$$
.
axes
.
x
.
style
(
"visibility"
,
$$
.
config
.
axis_x_show
?
'visible'
:
'hidden'
);
...
@@ -7965,6 +7969,10 @@
...
@@ -7965,6 +7969,10 @@
};
};
c3_chart_fn
.
axisY
=
function
(
value
){
c3_chart_fn
.
axisY
=
function
(
value
){
var
$$
=
this
.
internal
;
var
$$
=
this
.
internal
;
if
(
value
===
undefined
){
return
$$
.
config
.
axis_y_show
;
}
$$
.
config
.
axis_y_show
=
!!
value
;
$$
.
config
.
axis_y_show
=
!!
value
;
$$
.
axes
.
y
.
style
(
"visibility"
,
$$
.
config
.
axis_y_show
?
'visible'
:
'hidden'
);
$$
.
axes
.
y
.
style
(
"visibility"
,
$$
.
config
.
axis_y_show
?
'visible'
:
'hidden'
);
...
@@ -7974,7 +7982,13 @@
...
@@ -7974,7 +7982,13 @@
c3_chart_fn
.
axisY2
=
function
(
value
){
c3_chart_fn
.
axisY2
=
function
(
value
){
var
$$
=
this
.
internal
;
var
$$
=
this
.
internal
;
if
(
value
===
undefined
){
console
.
log
(
value
,
$$
.
config
.
axis_y2_show
);
return
$$
.
config
.
axis_y2_show
;
}
$$
.
config
.
axis_y2_show
=
!!
value
;
$$
.
config
.
axis_y2_show
=
!!
value
;
console
.
log
(
value
,
$$
.
config
.
axis_y2_show
);
$$
.
axes
.
y2
.
style
(
"visibility"
,
$$
.
config
.
axis_y2_show
?
'visible'
:
'hidden'
);
$$
.
axes
.
y2
.
style
(
"visibility"
,
$$
.
config
.
axis_y2_show
?
'visible'
:
'hidden'
);
$$
.
redraw
();
$$
.
redraw
();
...
...
c3.min.js
View file @
cd43dfc3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/api.axis.js
View file @
cd43dfc3
...
@@ -85,6 +85,10 @@ c3_chart_fn.axis.yFormat = function(value){
...
@@ -85,6 +85,10 @@ c3_chart_fn.axis.yFormat = function(value){
c3_chart_fn
.
axisX
=
function
(
value
){
c3_chart_fn
.
axisX
=
function
(
value
){
var
$$
=
this
.
internal
;
var
$$
=
this
.
internal
;
if
(
value
===
undefined
){
return
$$
.
config
.
axis_x_show
;
}
$$
.
config
.
axis_x_show
=
!!
value
;
$$
.
config
.
axis_x_show
=
!!
value
;
$$
.
axes
.
x
.
style
(
"visibility"
,
$$
.
config
.
axis_x_show
?
'visible'
:
'hidden'
);
$$
.
axes
.
x
.
style
(
"visibility"
,
$$
.
config
.
axis_x_show
?
'visible'
:
'hidden'
);
...
@@ -93,6 +97,10 @@ c3_chart_fn.axisX = function (value){
...
@@ -93,6 +97,10 @@ c3_chart_fn.axisX = function (value){
};
};
c3_chart_fn
.
axisY
=
function
(
value
){
c3_chart_fn
.
axisY
=
function
(
value
){
var
$$
=
this
.
internal
;
var
$$
=
this
.
internal
;
if
(
value
===
undefined
){
return
$$
.
config
.
axis_y_show
;
}
$$
.
config
.
axis_y_show
=
!!
value
;
$$
.
config
.
axis_y_show
=
!!
value
;
$$
.
axes
.
y
.
style
(
"visibility"
,
$$
.
config
.
axis_y_show
?
'visible'
:
'hidden'
);
$$
.
axes
.
y
.
style
(
"visibility"
,
$$
.
config
.
axis_y_show
?
'visible'
:
'hidden'
);
...
@@ -102,6 +110,10 @@ c3_chart_fn.axisY = function (value){
...
@@ -102,6 +110,10 @@ c3_chart_fn.axisY = function (value){
c3_chart_fn
.
axisY2
=
function
(
value
){
c3_chart_fn
.
axisY2
=
function
(
value
){
var
$$
=
this
.
internal
;
var
$$
=
this
.
internal
;
if
(
value
===
undefined
){
return
$$
.
config
.
axis_y2_show
;
}
$$
.
config
.
axis_y2_show
=
!!
value
;
$$
.
config
.
axis_y2_show
=
!!
value
;
$$
.
axes
.
y2
.
style
(
"visibility"
,
$$
.
config
.
axis_y2_show
?
'visible'
:
'hidden'
);
$$
.
axes
.
y2
.
style
(
"visibility"
,
$$
.
config
.
axis_y2_show
?
'visible'
:
'hidden'
);
...
...
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