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
c4001a6e
Commit
c4001a6e
authored
Feb 25, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix y tick format when resize - #41
parent
4e6885a0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
c3.js
c3.js
+10
-10
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
c4001a6e
...
...
@@ -330,10 +330,10 @@
subY
=
getY
(
subYMin
,
subYMax
);
subY2
=
getY
(
subYMin
,
subYMax
);
// update axes
xAxis
=
getXAxis
(
x
,
xOrient
);
yAxis
=
getYAxis
(
y
,
yOrient
);
yAxis2
=
getYAxis
(
y2
,
y2Orient
);
subXAxis
=
getXAxis
(
subX
,
subXOrient
);
xAxis
=
getXAxis
(
x
,
xOrient
,
getXAxisTickFormat
()
);
yAxis
=
getYAxis
(
y
,
yOrient
,
__axis_y_tick_format
);
yAxis2
=
getYAxis
(
y2
,
y2Orient
,
__axis_y2_tick_format
);
subXAxis
=
getXAxis
(
subX
,
subXOrient
,
getXAxisTickFormat
()
);
// update for arc
updateArc
();
}
...
...
@@ -381,11 +381,11 @@
//-- Axes --//
function
getXAxis
(
scale
,
orient
)
{
function
getXAxis
(
scale
,
orient
,
tickFormat
)
{
var
axis
=
(
isCategorized
?
categoryAxis
()
:
d3
.
svg
.
axis
()).
scale
(
scale
).
orient
(
orient
);
// Set tick format
axis
.
tickFormat
(
getXAxisTickFormat
()
);
axis
.
tickFormat
(
tickFormat
);
// Set categories
if
(
isCategorized
)
{
...
...
@@ -397,8 +397,8 @@
return
axis
;
}
function
getYAxis
(
scale
,
orient
)
{
return
d3
.
svg
.
axis
().
scale
(
scale
).
orient
(
orient
);
function
getYAxis
(
scale
,
orient
,
tickFormat
)
{
return
d3
.
svg
.
axis
().
scale
(
scale
).
orient
(
orient
)
.
tickFormat
(
tickFormat
)
;
}
function
getAxisId
(
id
)
{
return
id
in
__data_axes
?
__data_axes
[
id
]
:
'y'
;
...
...
@@ -1491,8 +1491,8 @@
// Set axes attrs
xAxis
.
ticks
(
data
.
length
<
10
?
data
.
length
:
10
);
yAxis
.
ticks
(
__axis_y_ticks
).
outerTickSize
(
0
)
.
tickFormat
(
__axis_y_tick_format
)
;
yAxis2
.
ticks
(
__axis_y2_ticks
).
outerTickSize
(
0
)
.
tickFormat
(
__axis_y2_tick_format
)
;
yAxis
.
ticks
(
__axis_y_ticks
).
outerTickSize
(
0
);
yAxis2
.
ticks
(
__axis_y2_ticks
).
outerTickSize
(
0
);
// Save original x domain for zoom update
orgXDomain
=
x
.
domain
();
...
...
c3.min.js
View file @
c4001a6e
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