Made the svg adjust to its parent's size, added tests for lineMode and showArea options, and did a bit of refactoring
Aaaaand 100% test coverage.