@ -67,6 +67,29 @@ var DEFAULTS = {
style : Graph3d . STYLE . DOT ,
style : Graph3d . STYLE . DOT ,
tooltip : false ,
tooltip : false ,
tooltipStyle : {
content : {
padding : '10px' ,
border : '1px solid #4d4d4d' ,
color : '#1a1a1a' ,
background : 'rgba(255,255,255,0.7)' ,
borderRadius : '2px' ,
boxShadow : '5px 5px 10px rgba(128,128,128,0.5)'
} ,
line : {
height : '40px' ,
width : '0' ,
borderLeft : '1px solid #4d4d4d'
} ,
dot : {
height : '0' ,
width : '0' ,
border : '5px solid #4d4d4d' ,
borderRadius : '5px'
}
} ,
showLegend : autoByDefault , // determined by graph style
showLegend : autoByDefault , // determined by graph style
backgroundColor : autoByDefault ,
backgroundColor : autoByDefault ,
@ -2314,26 +2337,16 @@ Graph3d.prototype._showTooltip = function (dataPoint) {
if ( ! this . tooltip ) {
if ( ! this . tooltip ) {
content = document . createElement ( 'div' ) ;
content = document . createElement ( 'div' ) ;
Object . assign ( content . style , { } , this . tooltipStyle . content ) ;
content . style . position = 'absolute' ;
content . style . position = 'absolute' ;
content . style . padding = '10px' ;
content . style . border = '1px solid #4d4d4d' ;
content . style . color = '#1a1a1a' ;
content . style . background = 'rgba(255,255,255,0.7)' ;
content . style . borderRadius = '2px' ;
content . style . boxShadow = '5px 5px 10px rgba(128,128,128,0.5)' ;
line = document . createElement ( 'div' ) ;
line = document . createElement ( 'div' ) ;
Object . assign ( line . style , { } , this . tooltipStyle . line ) ;
line . style . position = 'absolute' ;
line . style . position = 'absolute' ;
line . style . height = '40px' ;
line . style . width = '0' ;
line . style . borderLeft = '1px solid #4d4d4d' ;
dot = document . createElement ( 'div' ) ;
dot = document . createElement ( 'div' ) ;
Object . assign ( dot . style , { } , this . tooltipStyle . dot ) ;
dot . style . position = 'absolute' ;
dot . style . position = 'absolute' ;
dot . style . height = '0' ;
dot . style . width = '0' ;
dot . style . border = '5px solid #4d4d4d' ;
dot . style . borderRadius = '5px' ;
this . tooltip = {
this . tooltip = {
dataPoint : null ,
dataPoint : null ,