chart checkboxes, refactore stacked bar data