Hi @pseudocubic , I'm not quite understand this.
The data is a json list of

```
        [
          sha,
          [offset, branch], //dot
          [
            [from, to, branch],  // route 1
            [from, to, branch],  // route 2
            [from, to, branch],
          ]  // routes
        ],  // node
```

So if you want to determine the max width of the graph maybe you should find the max offset of dots. Which is easy,

```
var max_offset = -1;
for(var i=0; i<data.length; i++) { if (max_offset < data[i][1][0]) { max_offset = data[i][1][0]; } }
```

or you calculated the `from`, `to` of each route(the number means offset as well). Because sometime the max width of the graph will exceed the max offset of dot, like the picture below

![2014-05-09 5 24 36](https://cloud.githubusercontent.com/assets/1311043/2926387/ce8dae14-d75b-11e3-8ee8-dafd825de771.png)