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
18a39d58
Commit
18a39d58
authored
Jun 03, 2015
by
GermainBergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed build
Added c3.js & c3.min.js
parent
ce96ac07
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
c3.js
c3.js
+6
-0
c3.min.js
c3.min.js
+0
-0
api.tooltip.js
src/api.tooltip.js
+2
-2
No files found.
c3.js
View file @
18a39d58
...
...
@@ -1211,6 +1211,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
:
{
...
...
@@ -6718,10 +6720,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 @
18a39d58
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/api.tooltip.js
View file @
18a39d58
...
...
@@ -29,11 +29,11 @@ c3_chart_fn.tooltip.show = function (args) {
$$
.
dispatchEvent
(
'mouseover'
,
index
,
mouse
);
$$
.
dispatchEvent
(
'mousemove'
,
index
,
mouse
);
config
.
tooltip_onshow
.
call
(
$$
,
dataToShow
);
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
);
config
.
tooltip_onhide
.
call
(
this
);
this
.
config
.
tooltip_onhide
.
call
(
this
);
};
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