add draw line function
update xy chart