2022.2

Table Of Contents
integratedamChartslibrary(https://www.amcharts.com/javascript-charts/).
ThistopicexplainshowtocreateandeditabusinessgraphicusingaWizard,withoutscripting.Thewiz-
ardhelpsyoutoselectdataanditshowsapreviewofboththechartandthesupplieddata.
ConnectsupportsthemajorityoffeaturesoftheamChartslibrary(version:3.21.12),whetherornot
theyaredirectlyavailableintheChartwizardorviatheChartPropertiesdialog.Asarule,configuration
optionsthataren'tavailableasanoptioninadialogcanbesetmanuallyontheSourcetaboftheChart
Propertiesdialog.
InsteadofusingaWizard,youcouldinsertabusinessgraphicmanuallybyturningastandard<div>
elementintoachartobjectusingscripting.
ThereisaHow-tothatguidesyouthroughthatprocessandgivesabetterunderstandingoftheunder-
lyingconfiguration:ProgrammaticallyconfigureaChartobject.
ForanotherexampleseethisHow-to:PutonesliceperdetailrecordinaPieChart.
AsofPrintShopMailConnectversion2018.1,thewaychartscanbecompiledandpresentedhas
beengreatlyimproved.Asaconsequence,chartsmadewithaversionofConnectpriorto2018.1
maynotbeconvertedcorrectlywhenopenedinalaterversion.Foralistofknownbackwardcom-
patibilityissuessee:"BusinessGraphics:BackwardCompatibilityIssuesintroducedin2018.1"on
page85.Alsonotethatchartsbasedonexpanded,customscriptsareneverconverted.
Insertingabusinessgraphic
TheConnectDesignerhaswizardsforaddingthreekindsofgraphics:PieCharts,BarChartsandLine
Charts.Thesewizardsinsertthechartanditsaccompanyingscript,afteryouselectthedatathat
shouldbedisplayed,theircolorsandlabels,andafewdisplayoptions.
Toinsertabusinessgraphicinatemplate:
1. Placethecursorwherethegraphicshouldbeadded.Alsomakesurethatyouhaveloadeddata
(see"Loadingdata"onpage299).
2. Clickthetoolbarbuttonofthetypeofchartyouwanttoadd,orselectInsert > Business graphic
andchoosethecharttype.
Thewizardopenswithapageonwhichyoucanspecifytheattributesandinsertionpointofthe
graph.
3. AnIDisrequired.YoucanchangethegivenIDand,optionally,addaclass.
4.
l
At cursor positioninsertsitwherethecursorislocatedinthetemplate.
l
Before elementinsertsitbeforetheHTMLelementinwhichthecursoriscurrentlyloc-
ated.Forexampleifthecursoriswithinaparagraph,theinsertionpointwillbebeforethe
<p>tag.*
Page 230