Bar Chart Report Script dynamic markers

Hello There,
I’m trying this script to add a marker in a Bar Chart on a Report:

from org.jfree.chart.plot import ValueMarker
marker = ValueMarker(2500) #point on range axis to label
marker.setLabel("Some Marker")

Working all good, but what if I want to Have a dynamic Value marker that changes depending a result from a Query or Value from a Tag? Is that posible in the report scripting? Thanks!