Performance improvements

y-axis & various performance improvements

- external svg elements
- only update chartOffset & y-axis variables when needed