Use variables for colors and labels in charts

@bartaelterman, I refactored `analyse.py` to fix #31, but didn't run it. Can you test?

Also, can the whole block `# Methods for printing html` be removed? I think it is no longer used. If yes, remove it and then accept the merge.