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
140cf726
Commit
140cf726
authored
Aug 30, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix padding when scatter chart - #457
parent
99407144
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
16 deletions
+14
-16
c3.js
c3.js
+7
-8
c3.min.js
c3.min.js
+0
-0
config.js
src/config.js
+2
-2
data.js
src/data.js
+5
-6
No files found.
c3.js
View file @
140cf726
...
@@ -945,8 +945,8 @@
...
@@ -945,8 +945,8 @@
axis_x_tick_values
:
null
,
axis_x_tick_values
:
null
,
axis_x_tick_rotate
:
undefined
,
axis_x_tick_rotate
:
undefined
,
axis_x_tick_outer
:
true
,
axis_x_tick_outer
:
true
,
axis_x_max
:
null
,
axis_x_max
:
undefined
,
axis_x_min
:
null
,
axis_x_min
:
undefined
,
axis_x_padding
:
{},
axis_x_padding
:
{},
axis_x_height
:
undefined
,
axis_x_height
:
undefined
,
axis_x_default
:
undefined
,
axis_x_default
:
undefined
,
...
@@ -1471,12 +1471,11 @@
...
@@ -1471,12 +1471,11 @@
return
maxTarget
;
return
maxTarget
;
};
};
c3_chart_internal_fn
.
getEdgeX
=
function
(
targets
)
{
c3_chart_internal_fn
.
getEdgeX
=
function
(
targets
)
{
var
target
=
this
.
getMaxDataCountTarget
(
targets
),
firstData
,
lastData
;
var
$$
=
this
;
if
(
!
target
)
{
return
!
targets
.
length
?
[
0
,
0
]
:
[
return
[
0
,
0
];
$$
.
d3
.
min
(
targets
,
function
(
t
)
{
return
t
.
values
[
0
].
x
;
}),
}
$$
.
d3
.
max
(
targets
,
function
(
t
)
{
return
t
.
values
[
t
.
values
.
length
-
1
].
x
;
})
firstData
=
target
.
values
[
0
],
lastData
=
target
.
values
[
target
.
values
.
length
-
1
];
];
return
[
firstData
.
x
,
lastData
.
x
];
};
};
c3_chart_internal_fn
.
mapToIds
=
function
(
targets
)
{
c3_chart_internal_fn
.
mapToIds
=
function
(
targets
)
{
return
targets
.
map
(
function
(
d
)
{
return
d
.
id
;
});
return
targets
.
map
(
function
(
d
)
{
return
d
.
id
;
});
...
...
c3.min.js
View file @
140cf726
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/config.js
View file @
140cf726
...
@@ -87,8 +87,8 @@ c3_chart_internal_fn.getDefaultConfig = function () {
...
@@ -87,8 +87,8 @@ c3_chart_internal_fn.getDefaultConfig = function () {
axis_x_tick_values
:
null
,
axis_x_tick_values
:
null
,
axis_x_tick_rotate
:
undefined
,
axis_x_tick_rotate
:
undefined
,
axis_x_tick_outer
:
true
,
axis_x_tick_outer
:
true
,
axis_x_max
:
null
,
axis_x_max
:
undefined
,
axis_x_min
:
null
,
axis_x_min
:
undefined
,
axis_x_padding
:
{},
axis_x_padding
:
{},
axis_x_height
:
undefined
,
axis_x_height
:
undefined
,
axis_x_default
:
undefined
,
axis_x_default
:
undefined
,
...
...
src/data.js
View file @
140cf726
...
@@ -123,12 +123,11 @@ c3_chart_internal_fn.getMaxDataCountTarget = function (targets) {
...
@@ -123,12 +123,11 @@ c3_chart_internal_fn.getMaxDataCountTarget = function (targets) {
return
maxTarget
;
return
maxTarget
;
};
};
c3_chart_internal_fn
.
getEdgeX
=
function
(
targets
)
{
c3_chart_internal_fn
.
getEdgeX
=
function
(
targets
)
{
var
target
=
this
.
getMaxDataCountTarget
(
targets
),
firstData
,
lastData
;
var
$$
=
this
;
if
(
!
target
)
{
return
!
targets
.
length
?
[
0
,
0
]
:
[
return
[
0
,
0
];
$$
.
d3
.
min
(
targets
,
function
(
t
)
{
return
t
.
values
[
0
].
x
;
}),
}
$$
.
d3
.
max
(
targets
,
function
(
t
)
{
return
t
.
values
[
t
.
values
.
length
-
1
].
x
;
})
firstData
=
target
.
values
[
0
],
lastData
=
target
.
values
[
target
.
values
.
length
-
1
];
];
return
[
firstData
.
x
,
lastData
.
x
];
};
};
c3_chart_internal_fn
.
mapToIds
=
function
(
targets
)
{
c3_chart_internal_fn
.
mapToIds
=
function
(
targets
)
{
return
targets
.
map
(
function
(
d
)
{
return
d
.
id
;
});
return
targets
.
map
(
function
(
d
)
{
return
d
.
id
;
});
...
...
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