rstudio / ggvis

Interactive grammar of graphics for R
Other
715 stars 173 forks source link

Add a new hide statement for the gear #444

Open Stephen-McDaniel opened 8 years ago

Stephen-McDaniel commented 8 years ago

Hi ggvis dev team,

I see in the JavaScript for ggvis how the gear could be hidden by manually adding a new line to the JS: $('.plot-gear-icon').hide();

However, may I suggest a new statement in ggvis? hide_gear(vis)

Which would update the output via JS in a manner similar to: if (inExportPanel() | hide_gear) { $('.plot-gear-icon').hide(); }

A bit more flavor, when creating dashboards with various packages, it's odd to casual users of the dashboard that only one of the charts has a gear, but the other charts (from other packages) don't have them.

Regards, Stephen