Allow chart and key to be updated with new line data
Allow lines to be removed from chart and key
Change case of some function names