working just need definition added for 'criteria line'

Please only condition on non-user-facing values. Names are user-facing and likely to change. It is hard to update scattered places throughout the code to match new user-facing values. That said, I can't fault you too much because the means to get a non-user facing identifier is not yet well-documented. Going forward, we would all benefit from usejsdoc.org on our functions. You can get the programmatic identifiers for a TimeSeriesVisualization here by calling tsViz.getComponentsOfId(); Calling that function returns a map with a key 'constituent'. You can count on that value being stable and safely condition on it. The value can be any of the keys in the nar.Constituent map (Constituents.js).