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
683c9af6
Commit
683c9af6
authored
Feb 25, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sub chart axis ticks
parent
c4001a6e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
c3.js
c3.js
+5
-4
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
683c9af6
...
@@ -323,10 +323,10 @@
...
@@ -323,10 +323,10 @@
subYMin
=
__axis_rotated
?
0
:
height2
;
subYMin
=
__axis_rotated
?
0
:
height2
;
subYMax
=
__axis_rotated
?
width2
:
1
;
subYMax
=
__axis_rotated
?
width2
:
1
;
// update scales
// update scales
x
=
getX
(
xMin
,
xMax
,
isDefined
(
x
)
?
x
.
domain
()
:
undefined
,
function
()
{
return
xAxis
.
tickOffset
();
});
x
=
getX
(
xMin
,
xMax
,
x
?
x
.
domain
()
:
undefined
,
function
()
{
return
xAxis
.
tickOffset
();
});
y
=
getY
(
yMin
,
yMax
,
isDefined
(
y
)
?
y
.
domain
()
:
undefined
);
y
=
getY
(
yMin
,
yMax
,
y
?
y
.
domain
()
:
undefined
);
y2
=
getY
(
yMin
,
yMax
,
isDefined
(
y2
)
?
y2
.
domain
()
:
undefined
);
y2
=
getY
(
yMin
,
yMax
,
y2
?
y2
.
domain
()
:
undefined
);
subX
=
getX
(
xMin
,
xMax
,
isDefined
(
orgXDomain
)
?
orgXDomain
:
undefined
,
function
(
d
)
{
return
d
%
1
===
0
?
subXAxis
.
tickOffset
()
:
0
;
});
subX
=
getX
(
xMin
,
xMax
,
orgXDomain
,
function
(
d
)
{
return
d
%
1
?
0
:
subXAxis
.
tickOffset
()
;
});
subY
=
getY
(
subYMin
,
subYMax
);
subY
=
getY
(
subYMin
,
subYMax
);
subY2
=
getY
(
subYMin
,
subYMax
);
subY2
=
getY
(
subYMin
,
subYMax
);
// update axes
// update axes
...
@@ -1491,6 +1491,7 @@
...
@@ -1491,6 +1491,7 @@
// Set axes attrs
// Set axes attrs
xAxis
.
ticks
(
data
.
length
<
10
?
data
.
length
:
10
);
xAxis
.
ticks
(
data
.
length
<
10
?
data
.
length
:
10
);
subXAxis
.
ticks
(
data
.
length
<
10
?
data
.
length
:
10
);
yAxis
.
ticks
(
__axis_y_ticks
).
outerTickSize
(
0
);
yAxis
.
ticks
(
__axis_y_ticks
).
outerTickSize
(
0
);
yAxis2
.
ticks
(
__axis_y2_ticks
).
outerTickSize
(
0
);
yAxis2
.
ticks
(
__axis_y2_ticks
).
outerTickSize
(
0
);
...
...
c3.min.js
View file @
683c9af6
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