title: Highcharts - How to programmatically toggle legend items and determine which items are selected
body: <p>So I have a couple of requests from our designers:</p>
  
  <p>1) Allow users to select/deselect all legend items via clicking a link outside the chart container. This means I need to programmatically toggle all items in the chart on or off, regardless if any are currently selected/deselected.</p>
  
  <p>2) Determine which particular legend items are selected (or enabled) in the chart so that we can generate another chart from the selections.</p>
  
  <p>I don't see a way to do either using the API so I was wondering if anyone has come up with a possible solution for either (or both).</p>
  
  <p>Thanks in advance for any guidance.</p>