2022.2

Table Of Contents
OntheSourcetab,allsettingsaregiveninJSON.Forexample:
{
"type": "pie",
"legend": {
"enabled": false
},
"radius": "100",
"innerRadius": "30"
}
(TheinnerRadiusoption,foundonthePietabinthePieChartproperties,givesthisPieChartthe
shapeofadonut.)
NotethatonlypropertiesthatweremodifiedviaoneofthetabmenusareincludedintheJSONonthe
Sourcetab.
Tochangethechart,youcansimplyedittheJSON.
Forexample,adding"handDrawn": "true"(atthesamelevelasthe"type"property)willdistortthe
linesofaBarchartorLinechart,producingahand-drawneffect.
AllconfigurationoptionscanbefoundintheamChartsAPIdocumentation:https://-
docs.amcharts.com/3/javascriptcharts/.
Itdependsontheclasstowhichapropertybelongs,whereintheJSONthepropertyshouldbeadded.
Chartpropertiesshouldbeaddedatthehighestlevel;forexample:
{
"type": "serial",
"rotate": true,
...
}
PropertiesoftheLegend(listedhere:https://docs.amcharts.com/3/javascriptcharts/AmLegend)should
gointhelegendsectionintheJSON:
...
"legend": {
"position": "right"
},
TheSourcetabalsoletsyouchangepropertiesthatareavailableineithertheScriptWizardorother
tabsoftheChartPropertiesdialog.Youcould,forexample,setthecolorsofthebars,linesorslicesby
addinganarrayofhexadecimalcolorvalues,likethis:
"colors": ["#FF6600", "#FCD202", "#B0DE09", "#0D8ECF"]
NotethatpropertiesdefinedontheSourcetaboverridethosemadeintheScriptWizardoronother
tabsofthePropertiesdialog.
Page 234