OpenWaterFoundation / owf-app-dev-ng

Open Water Foundation Angular application to develop common libraries
0 stars 1 forks source link

Chart legend - always defaulting and not handling TSTool legend format specifiers #71

Open smalers opened 2 years ago

smalers commented 2 years ago

I tried to configure two population time series from different years of publication. I wanted to add 2020 in the legend for one and 2021 in the legend for another. However, the legend property seems to be hard-coded to the alias. See the following graph configuration file:

          "LegendFormat" : "%A (2021)",

county-population-graph-config.json

I think the Java code equivalent is the TS class formatLegend function.

It would be good if that method were fully enabled.

Nightsphere commented 2 years ago

The latest code was merged and pushed. I'll wait to close this until Steve confirms it's fixed.