refactored graph view with inheritance; fixed mouse click for correct date info