chain data is written in graphviz-compatible format.