Set graph label based on settings