How to Remove control options from NVD3.js Stacked Area Chart (Stacked, Streamed, or Expanded view)

I recently came across a situation where one of my clients had no need for the 'Expanded' view mode in the NVD3 stacked area chart that I had customized for them. The documentation for NVD3 is often lacking, but the source code is well organized and makes discovering hidden options fairly quick.

To remove all of the controls, you can simple call:
chart.showControls(false);
To remove a single control, you have to set the chart._options.controlOptions variable to set the controls that you want to show. The default options are:
['Stacked', 'Stream', 'Expanded']

So you if need to remove one of the control options, set chart._options.controlOptions to an array with that option omitted:
chart._options.controlOptions = ['Stacked', 'Stream']; // hide 'Expanded' view

chart._options.controlOptions = ['Stacked', 'Expanded']; // hide 'Stream' view

chart._options.controlOptions = ['Expanded', 'Stream']; // hide 'Stacked' view
The chart will default to the first option, so in the last example, 'Expanded' will be the default view. If the order of controls is switched, 'Stream' will be the default view.