vega/react-vega

How to hide the action button in Vega

greg59650 opened this issue · 2 comments

I use vega-react and I would like to know the easiest way not to display the "Actions" button on the chart.

image

if I declare all actions to be false it will not display any actions but the button will still be present.

<Vega spec={spec as VisualizationSpec} data={barData} actions={{ export: false, source: false, compiled: false, editor: false, }} />

What if instead of an object, you just pass false?

@domoritz

Thanks.

exactly, the solution was this,

<Vega spec={spec as VisualizationSpec} data={barData} actions={false} />