File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,7 +108,12 @@ module.exports = function setup(chartEl) {
108108 } ,
109109 tooltips : {
110110 enabled : is_tooltips ,
111- // backgroundColor: 'red'
111+ backgroundColor : chartEl . tooltipsBg ,
112+ bodyFontSize : chartEl . tooltipsFontSize ,
113+ bodyFontColor : chartEl . tooltipsFontColor ,
114+ bodyFontFamily : chartEl . tooltipsFontFamily ,
115+ xPadding : chartEl . tooltipsXpad || 10 ,
116+ yPaading : chartEl . tooltipsYpad || 10 ,
112117 } ,
113118 hover : {
114119 mode : is_hover
Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ fontColorX: string
7878fontColorY: string
7979fontFamilyX: string
8080fontFamilyY: string
81+ tooltipsBg: string
82+ tooltipsFontSize: number
83+ tooltipsFontColor: string
84+ tooltipsFontFamily: string
85+ tooltipsXpad: number
86+ tooltipsYpad: number
8187```
8288
8389
Original file line number Diff line number Diff line change @@ -108,7 +108,12 @@ module.exports = function setup(chartEl) {
108108 } ,
109109 tooltips : {
110110 enabled : is_tooltips ,
111- // backgroundColor: 'red'
111+ backgroundColor : chartEl . tooltipsBg ,
112+ bodyFontSize : chartEl . tooltipsFontSize ,
113+ bodyFontColor : chartEl . tooltipsFontColor ,
114+ bodyFontFamily : chartEl . tooltipsFontFamily ,
115+ xPadding : chartEl . tooltipsXpad || 10 ,
116+ yPaading : chartEl . tooltipsYpad || 10 ,
112117 } ,
113118 hover : {
114119 mode : is_hover
You can’t perform that action at this time.
0 commit comments