The recommended way to manage drawings is to use the Worksheet.add_chart and Worksheet.add_image methods.
A Drawing is a canvas for charts and images. Each worksheet has a single drawing that manages anchors. The anchors reference the charts or images via graphical frames. This is not a trivial relationship so please do follow the advice in the note. see examples/example.rb for an example of how to create a chart.
Creates a new Drawing object
The recommended way to manage charts is to use Worksheet.add_chart. Please refer to that method for documentation.
Adds a chart to the drawing.
The recommended way to manage images is to use Worksheet.add_image. Please refer to that method for documentation.
Adds an image to the chart If th end_at option is specified we create a two cell anchor. By default we use a one cell anchor.
A collection of anchors for this drawing only TwoCellAnchors are supported in this version
An array of charts that are associated with this drawing's anchors
A list of objects this drawing holds.
An array of hyperlink objects associated with this drawings images
An array of image objects that are associated with this drawing's anchors
The index of this drawing in the owning workbooks's drawings collection.
The part name for this drawing
The drawing's relationships.
The relational part name for this drawing #NOTE This should be rewritten to return an Axlsx::Relationship object.
Serializes the object
The worksheet that owns the drawing