I can change position of the legend in ChartJS using a condition, but then when I hover the chart it began to have some visual problems, like "glitchs" (it seems t