Use better timing to throttle the chart onbrush events. Use strict equality on some boolean variables.