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
d43ba27d
Commit
d43ba27d
authored
May 29, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:masayuki0812/c3
parents
64c5ddc5
f549408c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
c3.js
c3.js
+3
-1
No files found.
c3.js
View file @
d43ba27d
...
...
@@ -287,9 +287,11 @@
// tooltip - show when mouseover on each data
var
__tooltip_show
=
getConfig
([
'tooltip'
,
'show'
],
true
),
__tooltip_format_title
=
getConfig
([
'tooltip'
,
'format'
,
'title'
]),
__tooltip_format_name
=
getConfig
([
'tooltip'
,
'format'
,
'name'
]),
__tooltip_format_value
=
getConfig
([
'tooltip'
,
'format'
,
'value'
]),
__tooltip_contents
=
getConfig
([
'tooltip'
,
'contents'
],
function
(
d
,
defaultTitleFormat
,
defaultValueFormat
,
color
)
{
var
titleFormat
=
__tooltip_format_title
?
__tooltip_format_title
:
defaultTitleFormat
,
nameFormat
=
__tooltip_format_name
?
__tooltip_format_name
:
function
(
name
)
{
return
name
;
},
valueFormat
=
__tooltip_format_value
?
__tooltip_format_value
:
defaultValueFormat
,
text
,
i
,
title
,
value
,
name
,
bgcolor
;
for
(
i
=
0
;
i
<
d
.
length
;
i
++
)
{
...
...
@@ -300,7 +302,7 @@
text
=
"<table class='"
+
CLASS
.
tooltip
+
"'>"
+
(
title
||
title
===
0
?
"<tr><th colspan='2'>"
+
title
+
"</th></tr>"
:
""
);
}
name
=
d
[
i
].
name
;
name
=
nameFormat
(
d
[
i
].
name
)
;
value
=
valueFormat
(
d
[
i
].
value
,
d
[
i
].
ratio
,
d
[
i
].
id
,
d
[
i
].
index
);
bgcolor
=
levelColor
?
levelColor
(
d
[
i
].
value
)
:
color
(
d
[
i
].
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