Since you mentioned DataGrip, it seems like IDEA has this capability built in - [0]. You may need the Ultimate version. In that case, the $5/month really comes down to the collaboration features, although, office 365/google docs could be a poor-man's alternative.
For MySQL users on macOS, Sequel Pro can export your schema to graphviz format as well - [1]