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?
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?
Share Improve this question edited May 4, 2016 at 17:59 Mosh Feu 29.3k18 gold badges93 silver badges141 bronze badges asked Aug 25, 2013 at 18:54 LeopdLeopd 42.8k32 gold badges135 silver badges172 bronze badges3 Answers
Reset to default 12You can pass .showControls(false)
to the model to disable this.
$scope.options = {
chart: {
..
showControls: false,
}
};
Add showControls: false ,
to your options
Alternatively, if you're using angular-nvd3, you can use CSS.
svg {
.nv-controlsWrap {
display: none;
}
}