Micro optimization for scatter charts.
Removed unused variable in demo. Closes #2557.