From 5631bc46173769865de7a03cea097cd4da2ee666 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 22:52:52 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- .../vis/examples/graph2d/14_toggleGroups.html | 145 ++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 js/dos/ext/vis/examples/graph2d/14_toggleGroups.html diff --git a/js/dos/ext/vis/examples/graph2d/14_toggleGroups.html b/js/dos/ext/vis/examples/graph2d/14_toggleGroups.html new file mode 100644 index 0000000..c699003 --- /dev/null +++ b/js/dos/ext/vis/examples/graph2d/14_toggleGroups.html @@ -0,0 +1,145 @@ + + + + Graph2d | Toggle Groups Example + + + + + + + + +

Graph2d | Groups Example

+
+ This example shows the groups visibility functionality within Graph2d. Groups have their own visibility option. By using this, + all graph2d instances using those groups would show or hide that group. If you have multiple instances sharing the same data and groups, + you can use the groups.visibility option to set it on an instance level. The graphs below all share the same groups, items and initial options. + We then use a setOptions like so: + + +
+        graph2d1.setOptions({
+            groups:{
+                visibility:{
+                    0:true,               // group id:0 visible
+                    1:false,              // group id:1 hidden
+                    2:false,              // group id:2 hidden
+                    3:false,              // group id:3 hidden
+                    "__ungrouped__":false // default group hidden
+                }
+            }
+        })
+    
+
+
+ +
+
+
+
+
+
+ + + + \ No newline at end of file