Controlling graph node colors from tags#11886
Open
lhewett946 wants to merge 6 commits intologseq:test/dbfrom
Open
Controlling graph node colors from tags#11886lhewett946 wants to merge 6 commits intologseq:test/dbfrom
lhewett946 wants to merge 6 commits intologseq:test/dbfrom
Conversation
* Set graph nodes to different colours based on a page property * The property to use and the map of property values to colours are defined in config.edn
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds the ability to set the color used for nodes in the graph based on the tag that is applied to them, or in the case of MD graphs the value of a property named in the config.edn file.
Currently the colors are set through a map in the config.edn for both MD and DB graphs, but ideally I think there would be a way to do it through the UI. However, I don't have the knowledge to implement such a thing myself right now (although if I get time I will keep learning and may eventually add this to the PR).
I've seen a number of threads on the Logseq forum and a number of messages in the Discord about being able to control colors of the nodes in the graph view, so I hope this PR will go some way towards implementing this as a feature.