2022.2

Table Of Contents
Business graphics
Businessgraphicsareagreatwaytovisualizedatainyourdocuments.ConnectDesignerletsyoucre-
atethreetypesofgrapics:BarCharts,LineChartsandPieCharts.Thechartsaregeneratedbythe
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PlanetPress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compatibility
issuessee:"BusinessGraphics:BackwardCompatibilityIssuesintroducedin2018.1"onpage107.
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
oradatamappingconfiguration(see"Loadingdata"onpage710).
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.
Page 626