I have multi-line graph where I want to click on a line and permanently highlighted it. I am using the following code with the click event, however after I click and move the mouse, the line goes back. Hope someone could help me! EDIT: I also have a mouseover and mouseout event that I included in the code snippet. Answer