This page used to describe how to use Squid with MRTG.
Now, we prefer to use RRDTool instead of MRTG.
For some sample RRDTool graphs, please go here.
For a description of the setup and the scripts I use, please go here.