Rather than twice a second attaching a new 'mousemove' event handler,
do all the other color-overwriting twice a second but just attach one
'mousemove' event handler when first configuring the custom chart
colors.
Factor preparatory data massaging needed by both mousemove handler and
drawColors() into its own function called by each.
Also cherry-pick #17 which heavily conflicts with this. It fixes the
tooltip legend colors not being affected:
Rather than twice a second attaching a new 'mousemove' event handler, do all the other color-overwriting twice a second but just attach one 'mousemove' event handler when first configuring the custom chart colors.
Factor preparatory data massaging needed by both mousemove handler and drawColors() into its own function called by each.
Also cherry-pick #17 which heavily conflicts with this. It fixes the tooltip legend colors not being affected:
Thanks @leqilong!