Seporate logic for drawing graph and chart info in general