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
22def378
Commit
22def378
authored
Jun 06, 2015
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'GermainBergeron-tooltip_show_hide_events'
parents
0efe6d77
08a50b53
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
c3.js
c3.js
+6
-0
c3.min.js
c3.min.js
+0
-0
api.tooltip.js
src/api.tooltip.js
+4
-0
config.js
src/config.js
+2
-0
No files found.
c3.js
View file @
22def378
...
...
@@ -1257,6 +1257,8 @@
tooltip_init_show
:
false
,
tooltip_init_x
:
0
,
tooltip_init_position
:
{
top
:
'0px'
,
left
:
'50px'
},
tooltip_onshow
:
function
()
{},
tooltip_onhide
:
function
()
{},
// title
title_text
:
undefined
,
title_padding
:
{
...
...
@@ -6856,10 +6858,14 @@
// emulate mouse events to show
$$
.
dispatchEvent
(
'mouseover'
,
index
,
mouse
);
$$
.
dispatchEvent
(
'mousemove'
,
index
,
mouse
);
this
.
config
.
tooltip_onshow
.
call
(
$$
,
args
.
data
);
};
c3_chart_fn
.
tooltip
.
hide
=
function
()
{
// TODO: get target data by checking the state of focus
this
.
internal
.
dispatchEvent
(
'mouseout'
,
0
);
this
.
config
.
tooltip_onhide
.
call
(
this
);
};
// Features:
...
...
c3.min.js
View file @
22def378
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/api.tooltip.js
View file @
22def378
...
...
@@ -28,8 +28,12 @@ c3_chart_fn.tooltip.show = function (args) {
// emulate mouse events to show
$$
.
dispatchEvent
(
'mouseover'
,
index
,
mouse
);
$$
.
dispatchEvent
(
'mousemove'
,
index
,
mouse
);
this
.
config
.
tooltip_onshow
.
call
(
$$
,
args
.
data
);
};
c3_chart_fn
.
tooltip
.
hide
=
function
()
{
// TODO: get target data by checking the state of focus
this
.
internal
.
dispatchEvent
(
'mouseout'
,
0
);
this
.
config
.
tooltip_onhide
.
call
(
this
);
};
src/config.js
View file @
22def378
...
...
@@ -203,6 +203,8 @@ c3_chart_internal_fn.getDefaultConfig = function () {
tooltip_init_show
:
false
,
tooltip_init_x
:
0
,
tooltip_init_position
:
{
top
:
'0px'
,
left
:
'50px'
},
tooltip_onshow
:
function
()
{},
tooltip_onhide
:
function
()
{},
// title
title_text
:
undefined
,
title_padding
:
{
...
...
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