update example with memory of chart prefs across navigation