refactored out routes chart view to shared partial