Fix BGPCEP userfeatures
[integration/test.git] / csit / scripts / generate_uiStateJSON.py
index 6db4e5f5b9b7180cb3d161ab6e9cf8970a8cfd23..e99da6924890a3c7f9565ad321a235a3125bdc21 100644 (file)
@@ -1,3 +1,4 @@
+# Template for UIState (Currently supports only colors)
 UI_STATE_BODY = {
     "vis": {
         "colors": None
@@ -9,6 +10,12 @@ def generate(dash_config, viz_config):
 
     colors = {}
 
+    # Check for 'color' key in 'series' or 'seriesParams' in
+    # either viz_config and dash_config
+
+    # Note:- 'series' simplifies 'seriesParams' and 'aggs'
+    # and avoids duplication
+
     try:
         series = dash_config['y-axis']['series']
         for _, value in series.items():