Last active
August 2, 2020 19:14
-
-
Save davengeo/443554c918a6fffef0ae21d80c97c642 to your computer and use it in GitHub Desktop.
#jarchi heatmap for custom boolean property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getDiagramComponents = function(v, e) { | |
return $(v).find("concept").filter(function(o) { | |
return o.concept.id == e.id; | |
}); | |
} | |
gap = $("element").filter(function(obj) { | |
return obj.prop("GAP") == "true" ? true : false; | |
}); | |
$("view").each(function(v) { | |
gap.each(function(e) { | |
getDiagramComponents(v, e).each(function(g) { | |
g.fillColor="#FF2000"; | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment