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
f78a0856
Commit
f78a0856
authored
Aug 06, 2015
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1230 from laurence-hudson-tessella/fix-tick-bug
Fix #1229 - Incorrect x tick positioning
parents
afa5f52a
d49a68af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
data.js
src/data.js
+2
-1
No files found.
src/data.js
View file @
f78a0856
...
...
@@ -171,7 +171,8 @@ c3_chart_internal_fn.filterTargetsToShow = function (targets) {
c3_chart_internal_fn
.
mapTargetsToUniqueXs
=
function
(
targets
)
{
var
$$
=
this
;
var
xs
=
$$
.
d3
.
set
(
$$
.
d3
.
merge
(
targets
.
map
(
function
(
t
)
{
return
t
.
values
.
map
(
function
(
v
)
{
return
+
v
.
x
;
});
}))).
values
();
return
$$
.
isTimeSeries
()
?
xs
.
map
(
function
(
x
)
{
return
new
Date
(
+
x
);
})
:
xs
.
map
(
function
(
x
)
{
return
+
x
;
});
xs
=
$$
.
isTimeSeries
()
?
xs
.
map
(
function
(
x
)
{
return
new
Date
(
+
x
);
})
:
xs
.
map
(
function
(
x
)
{
return
+
x
;
});
return
xs
.
sort
(
function
(
a
,
b
)
{
return
a
<
b
?
-
1
:
a
>
b
?
1
:
a
>=
b
?
0
:
NaN
;
});
};
c3_chart_internal_fn
.
addHiddenTargetIds
=
function
(
targetIds
)
{
this
.
hiddenTargetIds
=
this
.
hiddenTargetIds
.
concat
(
targetIds
);
...
...
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