Reputation: 361
In HighStock, I'd like to use the built-in StockTools toolbar for marking up the chart, but remove some of the tools that aren't needed. I'd like to avoid building a custom toolbar (as described in their docs).
I've tried variations on adjustments to
stockTools:{ gui: { buttons: {...} } }
and
stockTools:{ gui: { definitions: {...} } }
but nothing seems to hide items.
The best option I have at the moment is using CSS to hide various toolbar items but if there's a javascript-configuration option, that would be preferable.
Upvotes: 1
Views: 234
Reputation: 4114
You tried an object but stockTools.gui.buttons
is an array - Documentation
stockTools: {
gui: {
buttons: ['indicators', 'separator', 'simpleShapes']
}
},
Upvotes: 2