implement chart settings save and preview