update mask possition and point type of line chart