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?
Nvd3 A reusable chart library for d3.js GitHubExamplesDocumentation Downloads: ZIP TAR NVD3 Documentation This page lists out all options available to the charts and is generated programatically using the new options object model.
Download d3.v3.js. This is the only required library for NVD3. Download the latest nv.d3.js (version 1.8.1). Get the developmentversion, or minified productionversion.
NVD3’s codebase is heavily inspired by the work of Mike Bostock. In particular, his article “Towards Reusable Charts”serves as our guide.
NVD3 is currently maintained by a team of frontend software engineers at Novus Partners. Our charting technology is used to provide powerful analytics to our clients in the financial industry.
You can pass .showControls(false)
to the model to disable this.
$scope.options = {
chart: {
..
showControls: false,
}
};
Add showControls: false ,
to your options
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With