AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

class anychart.ui.GanttToolbar Improve this Doc

Toolbar is a part of Gantt chart. Toolbar contains menu Print with options print A4 - A0, buttons ZoomIn, ZoomOut, FitAll, ExpandAll/CollapseAll and menu with option Save As (SVG, PNG, JPG, PDF).

Methods Overview

Specific settings
printPaperSizes()Print paper sizes.
target()Target of the control chart.
Miscellaneous
container()Toolbar container.
draw()Draws Gantt chart toolbar.

Methods Description

container

Getter for the Gantt chart toolbar container.

Returns:

Element | undefined - Current container.
Setter for the Gantt chart toolbar container.

Params:

NameTypeDefaultDescription
elementstring | Element
undefined
Element ID or a DOM node.

Returns:

anychart.ui.GanttToolbar - Self instance for method chaining.

draw

Draws Gantt chart toolbar.

Returns:

anychart.ui.GanttToolbar - Self instance for method chaining.

printPaperSizes

Getter for the current print paper sizes.

Returns:

Array.<anychart.graphics.vector.PaperSize> - The current print paper sizes.
Setter for the print paper sizes.

Params:

NameTypeDefaultDescription
valueArray.<anychart.graphics.vector.PaperSize>
["usletter", "a0", "a0", "a1", "a2", "a3", "a4", "a5", "a6"]
Array of supported print paper sizes.

Returns:

anychart.ui.GanttToolbar - Self instance for method chaining.

target

Getter for the current toolbar target.

Returns:

anychart.core.Chart | undefined - The current toolbar target.
Setter for the current toolbar target.

Params:

NameTypeDefaultDescription
valueanychart.core.Chart
undefined
Toolbar target.

Returns:

anychart.ui.GanttToolbar - Self instance for method chaining.