Forum Discussion

ElementUX's avatar
ElementUX
Cloud Apps
04-27-2022
Solved

Hover label value font colors

Is it possible to change the font color for bar chart hover  labels?  Ideally this would be a global setting, but if I have to run code per widget, ill do what it takes. Thanks!  
  • harikm007's avatar
    04-27-2022

    ElementUX ,

    Here is a script to make same color for tooltip.

     

    widget.on('beforedatapointtooltip', function(se, ev) {
    	$.each(ev.context.points, function(index, value){
    		value.valueColor = 'red' //specify color here
    	})
    })

    Its possible to apply the color globally by creating a plugin with this script.

    -Hari