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
2de76376
Commit
2de76376
authored
Dec 26, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tooltip position when arc and legend right - #847
parent
71d67232
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
c3.js
c3.js
+1
-1
c3.min.js
c3.min.js
+0
-0
tooltip.js
src/tooltip.js
+1
-1
No files found.
c3.js
View file @
2de76376
...
...
@@ -3647,7 +3647,7 @@
mouse
=
d3
.
mouse
(
element
);
// Determin tooltip position
if
(
forArc
)
{
tooltipLeft
=
(
$$
.
width
/
2
)
+
mouse
[
0
];
tooltipLeft
=
(
(
$$
.
width
-
(
$$
.
isLegendRight
?
$$
.
getLegendWidth
()
:
0
))
/
2
)
+
mouse
[
0
];
tooltipTop
=
(
$$
.
height
/
2
)
+
mouse
[
1
]
+
20
;
}
else
{
svgLeft
=
$$
.
getSvgLeft
(
true
);
...
...
c3.min.js
View file @
2de76376
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/tooltip.js
View file @
2de76376
...
...
@@ -56,7 +56,7 @@ c3_chart_internal_fn.tooltipPosition = function (dataToShow, tWidth, tHeight, el
mouse
=
d3
.
mouse
(
element
);
// Determin tooltip position
if
(
forArc
)
{
tooltipLeft
=
(
$$
.
width
/
2
)
+
mouse
[
0
];
tooltipLeft
=
(
(
$$
.
width
-
(
$$
.
isLegendRight
?
$$
.
getLegendWidth
()
:
0
))
/
2
)
+
mouse
[
0
];
tooltipTop
=
(
$$
.
height
/
2
)
+
mouse
[
1
]
+
20
;
}
else
{
svgLeft
=
$$
.
getSvgLeft
(
true
);
...
...
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