Performance improvements

Externally load svg templates & only update chart offset & y-axis ticks when needed.