Selecting checkboxes for graph