Browse Source

New (temporary) colorscheme for new map

Sebastian Lohff 1 year ago
parent
commit
180e127fff
1 changed files with 11 additions and 2 deletions
  1. 11
    2
      bgpdata/templates/bgpdata/new_new_map.html

+ 11
- 2
bgpdata/templates/bgpdata/new_new_map.html View File

@@ -180,13 +180,22 @@ d3.json("/api/v2/crawlrun/" + elem + "/?with_graph").then((data) => {
180 180
         .attr("rx", d => d.stub ? 34 : (40 + (d.neighbors > 5 ? 5 : 0)))
181 181
         .attr("ry", d => d.stub ? 12 : (20 + (d.neighbors > 5 ? 2 : 0)))
182 182
         .attr("fill", function(d) {
183
+            //if(d.directly_crawled)
184
+            //    return "#94FF70";
185
+            //else if(!d.online)
186
+            //    return "#FFCCCC";
187
+            //else if(d.stub)
188
+            //    return "#3291A8"
189
+            //else
190
+            //    return "#D1FFC2";
183 191
             if(d.directly_crawled)
192
+				//return "#55bc32";
184 193
                 return "#94FF70";
185 194
             else if(!d.online)
186 195
                 return "#FFCCCC";
187
-                // return "#F0FFEB";
188 196
             else if(d.stub)
189
-                return "#3291A8"
197
+                //return "#94FF70";
198
+                return "#E1FFE2";
190 199
             else
191 200
                 return "#D1FFC2";
192 201
         })

Loading…
Cancel
Save