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
100ea2c0
Commit
100ea2c0
authored
Jul 23, 2016
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add chart.axisY2 API
parent
cad29fd8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
2 deletions
+22
-2
c3.js
c3.js
+11
-1
c3.min.js
c3.min.js
+0
-0
api.axis.js
src/api.axis.js
+8
-0
api.chart.js
src/api.chart.js
+1
-1
c3.axis.js
src/c3.axis.js
+2
-0
No files found.
c3.js
View file @
100ea2c0
...
...
@@ -7971,6 +7971,14 @@
$$
.
redraw
();
};
c3_chart_fn
.
axisY2
=
function
(
value
){
var
$$
=
this
.
internal
;
$$
.
config
.
axis_y2_show
=
!!
value
;
$$
.
axes
.
y2
.
style
(
"visibility"
,
$$
.
config
.
axis_y2_show
?
'visible'
:
'hidden'
);
$$
.
redraw
();
};
c3_chart_fn
.
legend
=
function
()
{};
c3_chart_fn
.
legend
.
show
=
function
(
targetIds
)
{
...
...
@@ -8070,7 +8078,7 @@
}
};
c3
.
chart
.
fn
.
turn
=
function
(
options
){
c3
_chart_
fn
.
turn
=
function
(
options
){
var
$$
=
this
.
internal
;
var
turnAngle
;
...
...
@@ -8401,6 +8409,8 @@
tspan
.
text
(
function
(
d
)
{
if
(
d
.
splitted
.
length
)
{
// FIXME this should know when
// ticks are rotated
$$
.
config
.
maxTickTextWidth
=
Math
.
max
(
$$
.
config
.
maxTickTextWidth
||
0
,
d
.
splitted
.
length
*
fontSize
/
$$
.
config
.
text_h_to_w
...
...
c3.min.js
View file @
100ea2c0
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/api.axis.js
View file @
100ea2c0
...
...
@@ -99,3 +99,11 @@ c3_chart_fn.axisY = function (value){
$$
.
redraw
();
};
c3_chart_fn
.
axisY2
=
function
(
value
){
var
$$
=
this
.
internal
;
$$
.
config
.
axis_y2_show
=
!!
value
;
$$
.
axes
.
y2
.
style
(
"visibility"
,
$$
.
config
.
axis_y2_show
?
'visible'
:
'hidden'
);
$$
.
redraw
();
};
src/api.chart.js
View file @
100ea2c0
...
...
@@ -61,7 +61,7 @@ c3_chart_fn.bgcolor = function(value) {
}
};
c3
.
chart
.
fn
.
turn
=
function
(
options
){
c3
_chart_
fn
.
turn
=
function
(
options
){
var
$$
=
this
.
internal
;
var
turnAngle
;
...
...
src/c3.axis.js
View file @
100ea2c0
...
...
@@ -271,6 +271,8 @@ function c3_axis(d3, params, $$) {
tspan
.
text
(
function
(
d
)
{
if
(
d
.
splitted
.
length
)
{
// FIXME this should know when
// ticks are rotated
$$
.
config
.
maxTickTextWidth
=
Math
.
max
(
$$
.
config
.
maxTickTextWidth
||
0
,
d
.
splitted
.
length
*
fontSize
/
$$
.
config
.
text_h_to_w
...
...
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