Text/Chart button
This allows the user to change between different views of the same data. Some people prefer to look at visual charts, others like to see data in a list view. All this button does is toggle a global variable which stores the current state, then hides what shouldn't display and shows what should.