Kibana "Goal" Visual - how to make the end of the scale dynamic

I think this question is similar to Dynamic range in Goal or Gauge visualization in 7.4 or above. Could you take a look and see if that helps? I believe you'll have to use TSVB for this.