-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color code different sources in the lineage graph #26
Comments
@PowdyPowPow cool idea! I think it might look kind of wonky to color every source differently... maybe that's just something that we need to experiment with. It could be interesting to tone down the color (like use gray instead of green, or something) and then use a differently colored border, for instance. What do you think? |
@drewbanin i guess it could become very colorful and you would need to choose "easy" colors. But as currently the sources get distributed all over the graph it is already colorful with just the green. Maybe if you could somehow cluster them together it would probably also be easier to use some more discreet common element like colored border or just a different shades of grey? Or maybe you could group the different source tables together and put them in a (colored) box/container if they were all in the same place? |
Hi Team, I really think this will be a very useful feature. Few examples where I would love to use it :
To simplify the adoption, might be reasonable to pre-define some colours for some tags (config(tags=["dimension"]) or config(tags=["fact"]) config(tags=["base"]) plus the ability to define a custom mapping. Thanks in advance! |
I agree with @yarodmi, it would be really useful to be able to define/override color rules. I really like the idea of being able to define background colors and border colors for the nodes. I'd certainly use it to differentiate sources, staging models and fact/dimension tables. I could easily see this as a simple parameter in the source or dbt_project YAML files, eg: schema.yml sources:
- name: retently
docs_background_color: BFBFC0
docs_border_color: 3346F3
..other source config..
- name: gsheets
docs_background_color: BFBFC0
docs_border_color: 267C0B
..other source config.. dbt_project.yml models:
my_project:
marts:
docs_background_color: 10C3C3
staging:
docs_background_color: 4F0BC4 I think it would require being able to set background color, text color and border color at the minimum. |
Reposting here from the dbt Slack #suggestions channel per Drew's advice - another extension of the lineage graph color-coding I'd like to see (not related to sources, but rather the search filter). When I filter down to specific |
+1 for being able to map colours to tags. One additional thought - may people (e.g. in an ingestion,curation,calcuation,consumption architecture) have clearly defined 'layers' or groupings (e.g. staging, intermediate marts, core marts) of models. To be able to force the models into virtual columns (with a title) would be fantastic e.g. I'm already denoting these layers using model tags. |
I also think this could be very valuable, it would help us identify regions of different sources. |
Hi -- would like to upvote both of these feature requests (ability to color code, and ability to set columns for designated layers). This would be super useful, including for reviews such as demoed in your own video here: https://www.youtube.com/watch?v=5W6VrnHVkCA&list=PL0QYlrC86xQmPf9QUceFdOarYcv3ETSsz (also raised in dbt's Slack community) Thoughts? |
@drewbanin Hey Drew! Hope all is well :) this issue seems quite stale but it's something that our team would love to have. Any suggestions on where to start in the code base to make a contribution to this? Specifically, implementing alignment "zones" based on tags like in @guy-adams drawing above! |
@drewbanin - columns and colours would be close to my HIGHEST priority right now. Why? Because we're teaching every client how to live/breathe/think DBT and those two things help the DAG be the central unifying concept of the whole. Without them, any moderate sized DAG becomes fairly useless for understanding as a whole. |
+1 dbt Cloud user They would like to visually represent the modelling layers as different color nodes. Ex: stg models are represented by blue vs intermediate represented by orange etc. This is to make differentiating the different types of models easier within the DAG visualization. |
In v1.3, a custom We chose not to extend it to sources, exposures, and metrics for now. Still, that capability should go a way toward enabling a number of the desires in this thread! |
Great news - thanks Jeremy!! |
+1 I would like to visually represent Databrick's medallion architecture |
How does one use |
Would it be possible to change the text color of the node name? |
@serene-capybara to use node color on seeds, you'd do something like this in your seeds:
+docs:
node_color: "#cd7f32" Or something like this within a YAML file like seeds:
- name: my_seed
docs:
node_color: purple |
@patriklundberg changing the text color is not possible, but #408 has some discussion of how to achieve higher contrast between the text and the background color. |
Hello @everyone, I came accross this issue one week ago while looking for a solution to improve the lineage view of my project. After unsucessful searchs, I'm planning to explore some solutions that I could build in an external tool. Before starting any development, I would like to know if some participants are still looking for a solution, if yes please let me know with A VOTE on this comment. Below are potentital features, I was able to extract based on comments in this issue: Thanks. |
Hi @ngouass Color coding is now supported since dbt 1.3 (see @jtcohen6 's Sep 6, 2022 post); I believe that can cover items 1-5 on your list (using either tags or model file/pathnames as intermediary to apply the color coding to as needed). I've used it to indicate the different materializations (your item 4). Personally, I'd still be very interested in options to improve the layouting, in particular the ability to have models assigned to certain columns, to represent the layers -- very nicely visualized by @guy-adams in his Oct 25, 2019 post above (your item 6, I believe). This could be in the form of a strict (column) assignment or as "hints" to the auto-layouting. Whether I'd be interested in using an additional tool for that would depend on the ease of use/ease of integration in the toolchain. |
Hi @ptc-sgauglitz, Thank you for your answer, I will check the documentation to use that colour code feature. About the columns assignment to models, I will try to address that in the incoming weeks and get back to you in order to have some feedbacks. |
DId you open another issue/feature requests with the layer positioning idea? |
I did not open another issue nor am I aware of one; it seems both requests were discussed on this one thread. |
thanks @mattyb ! I'd be inclined to open a new issue, citing the tickets and above and referencing the interest voiced in this thread too 🤔 |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
we're still interested. |
It would be great to change the green of source nodes |
@rafaelamilagres as you noted, it is not currently possible to use Our documentation notes the node types that support the
If you're seeking more node types to be added, could you open a feature request? |
Both. For the color part I would just like to change the color of sources. Will look into the issues you linked for the layout part. |
I would like to change the text color, from white to black. It would make it easier to read the names of the table.
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Eirik Gallefoss ***@***.***>
Sent: Sunday, July 28, 2024 10:08:35 am
To: dbt-labs/dbt-docs ***@***.***>
Cc: patriklundberg ***@***.***>; Mention ***@***.***>
Subject: Re: [dbt-labs/dbt-docs] Color code different sources in the lineage graph (#26)
Both. For the color part I would just like to change the color of sources. Will look into the issues you linked for the layout part.
—
Reply to this email directly, view it on GitHub<#26 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHZ5GKCLOJYAYLF2PDWUGTZOSRH5AVCNFSM4HLSGZU2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRVGQZTQNRWGY4A>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@dbeatty10 same as @ejgal, both. But more so the layout, to distinguish clearly between raw - staging/intermediate - datamart layers of the data pipeline. I'll comment on the mentioned issues. |
@dbeatty10 @jtcohen6 upvoting request to be able to specify a color for source nodes. should we hope/assume that this issue will be reopened to add that feature, or should i file a new feature request? thanks! my use case is simply to be able to choose the color for source nodes instead of being stuck with green, so i can fully customize the appearance of my DAG 😄 |
Currently all source tables are shown green in the lineage graph.
It would be helpful if the tables from different sources would be shown in a different color.
The text was updated successfully, but these errors were encountered: