Smoothing for shares graph configurable instead of hardcoded in loops