2022.2

Table Of Contents
ForaBarChartorLineChart,youcanclickNextandsetsomebasicparametersofthechart:
ThesearejustoffewofthenumerousdisplayoptionsthatcanbeeditedviatheChartProperties
dialog;see"Enhancingacharts'design"onthenextpage.
7. ClickFinishtoinsertthechartintothetemplate.
Thewizardaddsthefollowingtothetemplate:
l
ADivelement.Ithasadata-amchartattribute,asyoucanseewhenyouselectthechartand
opentheSourceviewintheWorkspace.Thedata-amchartattributecontainssettingsforhow
thedataisdisplayed.Thesesettingsaremadeviathechart'sproperties(see"Enhancinga
charts'design"onthenextpage).
l
Ascript.Thescriptdetermineswhichdataaredisplayedinthechart,withwhichcolorsand
labels.Thescriptcanbeeditedanytime;see"SelectingdataforaBusinessGraphic"
below.
Whenaprevieworoutputmustbegenerated,thescriptaddsthedataforthecharttothe
data-amchartattribute(inadataProviderproperty).Connectthenpassesthevalue
ofthatattributetotheintegratedamChartslibrary.
Rasterizing a business graphic
BusinessgraphicsareoutputasSVGimages,butnotallclientsmaysupportthatformat.Beforegen-
eratingoutput,youmaywantto'rasterize'it.ThisconvertsthebusinessgraphintoaJPGorPNG
image.
Torasterizeabusinessgraphic,right-clickitandselectRasterize Options.
ForaJPGimageyoucansetthequalityoftheresultingimageinapercentage.
Note: AbusinessgraphicinanEmailsectionisrasterizedbydefaultandoutputasPNGimage,
becauseemailclientsusuallydon'tsupportSVGimages.
SVGimagesinanEmailsectiongiveanerrorinthePreflightwindow(see"DoingaPreflight"on
page378).
SelectingdataforaBusinessGraphic
ABusinessGraphicscriptdetermineswhichdata,colorsandlabelsareusedinthechart.Double-click
thescriptontheScriptspanetoopenit.
Tofindthescriptthatprovidesdataforachart,hoveroverthenamesofthescriptintheScriptspane.
ThatparticularscriptwillhighlightthechartinthetemplateanditsselectoristhesameastheIDof
thebusinessgraphic(precededby#).
Page 232