add area chart optimizations to line chart