Added UI for changing the graph in the preferences.