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
b2a0124f
Commit
b2a0124f
authored
Apr 04, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add API for y axis range - #119
parent
3c674ef7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
c3.js
c3.js
+28
-0
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
b2a0124f
...
@@ -4026,6 +4026,34 @@
...
@@ -4026,6 +4026,34 @@
}
}
// TODO: return some values?
// TODO: return some values?
};
};
c3
.
axis
.
max
=
function
(
max
)
{
if
(
arguments
.
length
)
{
if
(
typeof
max
===
'object'
)
{
if
(
isValue
(
max
.
y
))
{
__axis_y_max
=
+
max
.
y
;
}
if
(
isValue
(
max
.
y2
))
{
__axis_y2_max
=
+
max
.
y2
;
}
}
else
{
__axis_y_max
=
__axis_y2_max
=
+
max
;
}
redraw
();
}
};
c3
.
axis
.
min
=
function
(
min
)
{
if
(
arguments
.
length
)
{
if
(
typeof
min
===
'object'
)
{
if
(
isValue
(
min
.
y
))
{
__axis_y_min
=
+
min
.
y
;
}
if
(
isValue
(
min
.
y2
))
{
__axis_y2_min
=
+
min
.
y2
;
}
}
else
{
__axis_y_min
=
__axis_y2_min
=
+
min
;
}
redraw
();
}
};
c3
.
axis
.
range
=
function
(
range
)
{
if
(
arguments
.
length
)
{
if
(
typeof
range
.
max
!==
'undefined'
)
{
c3
.
axis
.
max
(
range
.
max
);
}
if
(
typeof
range
.
min
!==
'undefined'
)
{
c3
.
axis
.
min
(
range
.
min
);
}
}
};
c3
.
resize
=
function
(
size
)
{
c3
.
resize
=
function
(
size
)
{
__size_width
=
size
?
size
.
width
:
null
;
__size_width
=
size
?
size
.
width
:
null
;
...
...
c3.min.js
View file @
b2a0124f
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