Can someone advise how I can insert a horizontal line in the line graph I have. The line needs to be at value 15 as pictured below. I’m new to amCharts and tried looking it up to no avail.
Was able to solve this using “guides”. Right click the chart object in the main editor and choose Chart… Click the Source tab and add the following snippet to the JSON data:
Thanks Erik. I was so focused on javascript that I did not even look at the json source.
Would something like this work in a print template? (without animations) I like the “Target” text above the line.
Is there some documentation you can point me too regarding AMCharts and Connect. I found some mentions of documentation here but the links no longer work. I really need to sharpen up my chart knowledge as I don’t want to be on the back foot should another request be made.
Our UI exposes a subset of the features but many can be added via the Source tab of the Chart Properties dialog. These settings are stored in the data-amchart attribute of the chart element. This you could retrieve in a standard User Script and modify if needed. The snippet below adds your horizontal guide via a script (use #line as the selector for your script). This would also allow you to use a data field for the value and lineColor.