I'm working on a screen where the user can see the same information in 2 modes: graphic mode, and table mode (there's a toggle to switch between them). In the graphic mode, there's a graph and a details pane (which shows the details on what's selected in the graph), in which the user can edit some fields. In the table view, the user can edit the same fields directly in the table. Both views have "save" and "cancel" buttons.
My question is - what are the users most likely to expect in the following scenario: The user edited some fields in the graphical view and did not save the changes. The he switches the view to table. Should the changed he made but did not save persist in the table view, or should the view switch action discard unsaved changes (and therefore the user should receive a message on whether he wants to save the changes)?