Feature/responsivegraphs

Merged in the conflicting changes in master from the graphsettings branch.

Both the js and the python is a mess, but works really well now ;)