Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: FEWS-34929: allow usage of attributes in legendTextFunction

...

Tags are case sensitive. If a tag configured that does not exist in the given time series, it will be replaced by an empty string. Example:
<legendTextFunction>%PARAMETER_NAME% %ENSEMBLEMEMBERID% measured at %LOCATION_NAME%</legendTextFunction>  → Water level measured at Lobith H105 
LegendTextFunction does not work with timeseries header label function.

Since version 2026.02 legendTextFunction also supports moduleInstance, parameter, and location attributes, which can be included in the legendTextFunction using @ symbols (e.g. @ParameterAttribute1@)

showValueInLegend works the same with or without legendTextFunction.

...

  • <legendTextFunction>%PARAMETER_NAME%  measured at %LOCATION_NAME%</legendTextFunction>  → Water level measured at Lobith H105 
  • <legendTextFunction>%LOCATION_SHORTNAME% : %PARAMETER_ID%</legendTextFunction>  →  Lobith : WL
  • <legendTextFunction> %LOCATION_SHORTNAME% (%PARAMETER_NAME%)</legendTextFunction>   →  Lobith (Water level) 

Configuring a legendTextFunction a legendTextFunction will owerride override any other (additional) default information.

...