NVD3 - removing options for stackedAreaChart

I use a table by region in NVD3, but I do not want it to show the three options Stacked, Stream, and Advanced.

Is there a flag that I can pass in order to remove the user interface element to switch between them and choose which one to use?

enter image description here

+7
javascript
source share
3 answers

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

+11
source share
  $scope.options = { chart: { .. showControls: false, } }; 

Add showControls: false , to your options

+4
source share

Alternatively, if you use angular -nvd3, you can use CSS.

 svg { .nv-controlsWrap { display: none; } } 
0
source share

All Articles