chart update (bars to lines) + refactor