2022.1

Table Of Contents
* If the current element is located inside another element, use the Elements drop-down to
select which element is used for the insertion location. The list displays every element in
the breadcrumbs, from the current selection point down to the root of the body.
Note: HTML has some restrictions as to which types of elements are allowed as children
of other elements. For example, a paragraph element is not allowed to have children that
are block level elements - like a Div or a Table. If inserting content at the selected location
would produce invalid HTML the final result may be different than expected. For example,
when you insert a Div into a paragraph, the paragraph gets split in two. This means you
end up with two paragraphs with the Div in between.
5. Click Next and specify the data for the graph. These settings can also be edited when
you open the script, after you've inserted the chart. For an explanation of the options in the
wizard, see "Selecting data for a Business Graphic" on the next page.
6. For a Bar Chart or Line Chart, you can click Next and set some basic parameters of the
chart:
l Stack Series: Check to stack the values in one bar, instead of having one bar per
value. This is only useful with a chart that is based on a data table.
l Rotate: Check to flip the x and y axes, so that the bars are horizontal starting from
the left.
l Show Legend: Check to show the labels of the selected data in a legend.
This is only useful with a chart that is based on a data table. In a chart based on
data fields, the labels of the fields appear under the x-axis.
l Titles: Type the title that should appear near the horizontal (x) axis and/or the
vertical (y) axis. (Note that the axes with their titles are exchanged when you rotate
the chart.)
These are just of few of the numerous display options that can be edited via the Chart
Properties dialog; see "Enhancing a charts' design" on page740.
7. Click Finish to insert the chart into the template.
The wizard adds the following to the template:
l A Div element. It has a data-amchart attribute, as you can see when you select the
chart and open the Source view in the Workspace. The data-amchart attribute
contains settings for how the data is displayed. These settings are made via the chart's
properties (see "Enhancing a charts' design" on page740).
l A script. The script determines which data are displayed in the chart, with which
colors and labels. The script can be edited any time; see "Selecting data for a
Business Graphic" on the next page.
When a preview or output must be generated, the script adds the data for the chart
Page 736