Fixed issue #8394: Selected graph type in statistics is not saved