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?
You 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;
}
}
© 2022 - 2024 — McMap. All rights reserved.
rCharts
users come here, if n is your nPlot, don$chart(style = 'stack')
followed byn$chart(showControls = FALSE)
, to get the above with the default 'stack' selected. The other two are 'stream' and 'expand'. – Compunction