Performance: calculate chart width only once

For project with 1735 files `drawFileCharts()` in Chrome 33 took ~60s before, and ~20s after that fix.