setActionVisible(name, Boolean)

thisViewsheet.setActionVisible(name,Boolean) to show or hide Dashboard toolbar buttons.

Sets the visibility/accessibility of end-user Chart features. To disable a feature, set the value to false.

Parameters

name

name of chart function (String):

Table 1. Dragging

'AxisResize'

Enable or disable dragging to resize axis

'LegendResize'

Enable or disable resizing legend

'LegendMove'

Enable or disable moving legend

Table 2. Buttons

'Brush'

Enable or disable the ‘Brush Chart’ button brush

'Clear Brushing'

Enable or disable the ‘Clear Brushing’ button brush no

'Edit'

Enable or disable the ‘Edit’ button edit for Chart Editor

'Maximize'

Enable or disable the ‘Show Enlarged’ button expand

'Show Data'

Enable or disable the ‘Show Summary Data’ button show summary

'Show Details'

Enable or disable the ‘Show Details’ button show detail

'Zoom'

Enable or disable the ‘Zoom Chart’ button zoom in

'Exclude Data'

Enable or disable the ‘Exclude Data’ button eye off

'Clear Zoom'

Enable or disable the ‘Clear Zoom’ button zoom no

'Enable Manual Refresh'

Enable or disable the ‘Enable Manual Refresh’ button in the Ad Hoc Chart Editor

'Enable Auto Refresh'

Enable or disable the ‘Enable Auto Refresh’ button in the Ad Hoc Chart Editor

'Refresh'

Enable or disable the ‘Refresh’ button refresh in the Ad Hoc Chart Editor

'Drill Down Filter'

Enable or disable the ‘Drill Down Filter’ button drill down

'Hide MiniToolbar'

Enable or disable the Chart mini-toolbar

'Menu Actions'

Enable or disable the ‘More’ button (menu horizontal)

'Sort Axis'

Enable or disable the ‘Sort’ button sort for the axis

Table 3. Right-click menu options

'Resize Plot'

‘Resize’ Plot right-click menu option

'Properties'

‘Properties’ right-click menu option

'Format'

‘Format’ right-click menu option

'Save Image As'

‘Save Image As’ right-click menu option

'Annotate Component'

‘Annotate Component’ right-click menu option

'Annotate Point'

‘Annotate Point’ right-click menu option

'Axis Properties'

‘Axis Properties’ right-click menu option

'Hide Axis'

‘Hide Axis’ right-click menu option

'Title Properties'

‘Title Properties’ right-click menu option

'Hide Title'

‘Hide Title’ right-click menu option

'Group'

‘Group’ right-click menu option

'Filter'

‘Filter’ right-click menu option

'Ungroup'

‘Ungroup’ right-click menu option

'Rename'

‘Rename’ right-click menu option

'Legend Properties'

‘Legend Properties’ right-click menu option

'Hide Legend'

‘Hide Legend’ right-click menu option

'Show All Titles'

‘Show All Titles’ right-click menu option

'Show All Axes'

‘Show All Axes’ right-click menu option

'Show Legend'

‘Show Legend’ right-click menu option

Boolean

false: hide the specified function
true: show the specified function

Example

Chart1.setActionVisible("Show Details", false);

Either syntax below can be used in component script:

setActionVisible           // unqualified
Chart1.setActionVisible    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.