2022.2

Table Of Contents
ForinspirationyoucoulduseamCharts'online editor:https://live.amcharts.com/new/.
PropertiescanbecopieddirectlyfromtheCodetabintheliveeditortotheSourcetaboftheChartprop-
ertiesdialoginConnect.
NotethatcopyingtheentirecontentoftheCodetabwillalsocarryoverthesampledatafromthelive
editor(thedataProviderkey).ThesewillbeoverwrittenbythechartscriptinConnect.
l
PropertiesdefinedontheSourcetaboverridethosemadeintheScriptWizardoronother
tabsofthePropertiesdialog.TheonlyexceptionisthedataProviderproperty:thiswill
beoverwrittenbythechart'sscript.
l
InConnect,theimplementationwastestedwithPieCharts(amPieChart)andwithBar
ChartsandLineCharts(amSerialChart).Othervariantsmayormaynotwork.
l
Animationswillnotworkintheoutput,eveniftheoutputisawebpage.Thisisbecausethe
chartisgeneratedontheserver,notinthebrowser.
Togetanimationstoworkyouwouldhavetoimplementasolutionsimilartotheone
describedinthisHow-to:Dynamicdashboardcharts.
Using themes
TheamChartslibrarysupportsworkingwiththemes.Thedefaultthemesare:light,dark,black,pat-
terns,andchalk.Allexceptthe'patterns'themecanbeusedinConnecttemplates.Here'showtodo
that.
1. AddthethemetothetopoftheJSONontheSourcetaboftheChartPropertiesdiaog.For
example:
{ "theme": "light",
...
ThissettingoverridesanycolorsettingsmadeintheChartScriptwizardandontheothertabsof
theChartPropertiesdialog.
2. The'light'themerequiresnoothersettings.Fortheotherthemesyouwillhavetomanuallyset
thebackgroundcoloroftheDivelementthatholdsthechart:
A. SwitchtotheDesignmode.
B. Right-clickthechartareaandselectBox...fromthecontextualmenu.
C. OntheBackgroundtab,settheColorto:
l
#282828forthe'dark'themeandthe'chalk'theme
l
#222222forthe'black'theme
Page 235