Leopd Leopd - 7 months ago 33
Javascript Question

NVD3 - removing options for stackedAreaChart

I'm using the stacked area chart in NVD3, but I don't want it to show the three options for Stacked, Stream, and Expanded.

Is there a flag I can pass to remove the UI element to switch between them and pick which one to use?

enter image description here

Answer

You can pass .showControls(false) to the model to disable this.