It's related to the Greek word "graphein", which means "to write".
Here are some examples of words containing the root "gram":
* telegram: a message sent by telegraph.
* diagram: a simplified drawing that shows how something works or looks.
* program: a set of instructions for a computer.
* epigram: a short, witty saying.
* gramophone: an early device for playing records.
While the root "gram" often refers to written communication, it can also signify drawings or other forms of visual representation.