Refactored graphs css