json graphs working