graphs working except they dont rerender on patient page change and need a lot of formatting
Format code