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
74f65b3d
Commit
74f65b3d
authored
Mar 02, 2015
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tickInterval when transition
parent
6cf97b72
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
c3.js
c3.js
+4
-5
c3.min.js
c3.min.js
+0
-0
c3.axis.js
src/c3.axis.js
+4
-5
No files found.
c3.js
View file @
74f65b3d
...
...
@@ -6621,7 +6621,6 @@
var
scale
=
d3
.
scale
.
linear
(),
orient
=
"bottom"
,
innerTickSize
=
6
,
outerTickSize
,
tickPadding
=
3
,
tickValues
=
null
,
tickFormat
,
tickArguments
;
var
tickOffset
=
0
,
tickCulling
=
true
,
tickCentered
;
var
axis_g
;
params
=
params
||
{};
outerTickSize
=
params
.
withOuterTick
?
6
:
0
;
...
...
@@ -6688,9 +6687,9 @@
return
size
;
}
function
axis
(
g
)
{
axis_g
=
g
;
g
.
each
(
function
()
{
var
g
=
d3
.
select
(
this
);
var
g
=
axis
.
g
=
d3
.
select
(
this
);
var
scale0
=
this
.
__chart__
||
scale
,
scale1
=
this
.
__chart__
=
copyScale
();
var
ticks
=
tickValues
?
tickValues
:
generateTicks
(
scale1
),
...
...
@@ -6882,8 +6881,8 @@
interval
=
tickOffset
*
2
;
}
else
{
length
=
axis
_
g
.
select
(
'path.domain'
).
node
().
getTotalLength
()
-
outerTickSize
*
2
;
interval
=
length
/
axis
_
g
.
selectAll
(
'line'
).
size
();
length
=
axis
.
g
.
select
(
'path.domain'
).
node
().
getTotalLength
()
-
outerTickSize
*
2
;
interval
=
length
/
axis
.
g
.
selectAll
(
'line'
).
size
();
}
return
interval
;
};
...
...
c3.min.js
View file @
74f65b3d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/c3.axis.js
View file @
74f65b3d
...
...
@@ -7,7 +7,6 @@ function c3_axis(d3, params) {
var
scale
=
d3
.
scale
.
linear
(),
orient
=
"bottom"
,
innerTickSize
=
6
,
outerTickSize
,
tickPadding
=
3
,
tickValues
=
null
,
tickFormat
,
tickArguments
;
var
tickOffset
=
0
,
tickCulling
=
true
,
tickCentered
;
var
axis_g
;
params
=
params
||
{};
outerTickSize
=
params
.
withOuterTick
?
6
:
0
;
...
...
@@ -74,9 +73,9 @@ function c3_axis(d3, params) {
return
size
;
}
function
axis
(
g
)
{
axis_g
=
g
;
g
.
each
(
function
()
{
var
g
=
d3
.
select
(
this
);
var
g
=
axis
.
g
=
d3
.
select
(
this
);
var
scale0
=
this
.
__chart__
||
scale
,
scale1
=
this
.
__chart__
=
copyScale
();
var
ticks
=
tickValues
?
tickValues
:
generateTicks
(
scale1
),
...
...
@@ -268,8 +267,8 @@ function c3_axis(d3, params) {
interval
=
tickOffset
*
2
;
}
else
{
length
=
axis
_
g
.
select
(
'path.domain'
).
node
().
getTotalLength
()
-
outerTickSize
*
2
;
interval
=
length
/
axis
_
g
.
selectAll
(
'line'
).
size
();
length
=
axis
.
g
.
select
(
'path.domain'
).
node
().
getTotalLength
()
-
outerTickSize
*
2
;
interval
=
length
/
axis
.
g
.
selectAll
(
'line'
).
size
();
}
return
interval
;
};
...
...
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