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
dc9b2742
Commit
dc9b2742
authored
Feb 03, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix y tick format option
parent
8c9ca3ce
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
c3.js
c3.js
+4
-4
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
dc9b2742
...
...
@@ -88,7 +88,7 @@
// not used
//__axis_y_rescale = getConfig(['axis', 'y', 'rescale'], true),
__axis_y_inner
=
getConfig
([
'axis'
,
'y'
,
'inner'
],
false
),
__axis_y_
format
=
getConfig
([
'axis'
,
'y
'
,
'format'
],
function
(
d
)
{
return
d
;
}),
__axis_y_
tick_format
=
getConfig
([
'axis'
,
'y'
,
'tick
'
,
'format'
],
function
(
d
)
{
return
d
;
}),
__axis_y_padding
=
getConfig
([
'axis'
,
'y'
,
'padding'
],
null
),
__axis_y_ticks
=
getConfig
([
'axis'
,
'y'
,
'ticks'
],
10
),
__axis_y2_show
=
getConfig
([
'axis'
,
'y2'
,
'show'
],
false
),
...
...
@@ -99,7 +99,7 @@
// __axis_y2_label = getConfig(['axis', 'y2', 'text'], null),
// __axis_y2_rescale = getConfig(['axis', 'y2', 'rescale'], true),
__axis_y2_inner
=
getConfig
([
'axis'
,
'y2'
,
'inner'
],
false
),
__axis_y2_
format
=
getConfig
([
'axis'
,
'y2
'
,
'format'
],
function
(
d
)
{
return
d
;
}),
__axis_y2_
tick_format
=
getConfig
([
'axis'
,
'y2'
,
'tick
'
,
'format'
],
function
(
d
)
{
return
d
;
}),
__axis_y2_padding
=
getConfig
([
'axis'
,
'y2'
,
'padding'
],
null
),
__axis_y2_ticks
=
getConfig
([
'axis'
,
'y2'
,
'ticks'
],
10
),
__axis_rotated
=
getConfig
([
'axis'
,
'rotated'
],
false
);
...
...
@@ -1082,8 +1082,8 @@
// Set axes attrs
xAxis
.
ticks
(
data
.
length
<
10
?
data
.
length
:
10
);
yAxis
.
ticks
(
__axis_y_ticks
).
outerTickSize
(
0
).
tickFormat
(
__axis_y_format
);
yAxis2
.
ticks
(
__axis_y2_ticks
).
outerTickSize
(
0
).
tickFormat
(
__axis_y2_format
);
yAxis
.
ticks
(
__axis_y_ticks
).
outerTickSize
(
0
).
tickFormat
(
__axis_y_
tick_
format
);
yAxis2
.
ticks
(
__axis_y2_ticks
).
outerTickSize
(
0
).
tickFormat
(
__axis_y2_
tick_
format
);
// Save original x domain for zoom update
orgXDomain
=
x
.
domain
();
...
...
c3.min.js
View file @
dc9b2742
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