Colin
Colin

Reputation: 361

How to customize which items appear in the built-in StockTools toolbar?

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

Answers (1)

Core972
Core972

Reputation: 4114

You tried an object but stockTools.gui.buttons is an array - Documentation

stockTools: {
  gui: {
    buttons: ['indicators', 'separator', 'simpleShapes']
  }
},

Fiddle

Upvotes: 2

Related Questions