save chart type to application state