I have two questions about settings/options of columns of the table visualization:
If one hides a column, how can you get it back again? Resp. where are hidden/shown columns managed in the UI?
It seems like in the column header context menu one can turn column coloring on/off, but one cannot select the color scheme from there, but only from the cell context menu. Is that intended or just a small bug?
Hi Nico, welcome to the forum, happy to see you here!
Regarding the column visibility issue, we’ve just added a convenient way to control visible/hidden columns, it’s under the popup menu: Color sizing | Show / hide columns.... Later, we will extend this dialog to support column rearrangement as well. The latest version will be available on our dev server in 30 minutes.
Hi Andrew,
That’s great and exactly what I was looking for
Follow-up question: Is this entry also visible when clicking on the column header, not only on the cell? I’m not sure I fully understood when what context menu entry goes where (cell vs. col header).
Suggestion: Could you make this entry a top-level menu entry, as I don’t expect that most people would expect it under “Column sizing”.
Nico
We’ve also just added the ability to define categorical colors from the column popup menu. This only works for string colors, continuous color schemas on a per-column level are not supported yet.
I played again with it and have a couple of follow-up questions:
(Maybe this one was not clear in one of my previous posts here) It seems like you can only modify the color scheme when right-clicking onto a cell, but not onto a header of the column. Is that intended?
When I change the color scheme for one column, it also seems to change for another one. Is that a bug?
I can’t see this edit entry for string columns. Just used the public datagrok platform. Has that not yet been deployed?
Am I right, that you cannot create a custom color scheme (custom color and custom boundaries) for continuous and discrete numerical data? I believe that’s what you implied with your previous message. How much would it take to implement this?
Can we define a custom color scheme for continuous data from the API? If so, do you have a code example.
A lot of questions, but I believe that’s not only useful to us
The way it currently works is that when you click on a header, the column-specific actions are being positioned on menu’s top level:
When you click on a cell, the menu is a bit different. The column-specific actions get moved under the “Current column” group to make space for the grid-specific actions, such as sorting or adding new rows:
Honestly, I do find the way it works now confusing (and the fact that some of the menu items are always added on the top level does not help). Suggestions are welcome!
Yes, apparently our public version is 19 days old, but you can test it on dev: https://dev.datagrok.ai. Most likely you have a newer version deployed inside your company already as well.
You are right. It shouldn’t take that much effort, I think we can base it on the already existing data categorization capability (Data | Categorize), and yes we did commit to making it work - I guess it’s time to bite the bullet and just do it We’ll report updates here.
A very early prototype of the conditional color-coding editor for numerical columns, integrated with the property panel. Still buggy, but it’s a step in the right direction.
Numerical columns will have the following options: Off, Linear, and Conditional. Categorical ones will have a choice of Off and Conditional. Not yet sure if we need to generalize the internal mechanism to support different semantic types (so that for instance you will be able to color-code molecules based on whether a particular substructure exists).
Honestly, I do find the way it works now confusing (and the fact that some of the menu items are always added on the top level does not help). Suggestions are welcome!
What about following:
Col header -> col specific actions, like sorting, coloring, rendering, col properties…
Cel -> cell specific actions, like copy cell content, cell heights…
Table cog icon -> table viz specific actions, like data frame selection, data filtering options…
This conditional formatting option looks very promising. Is there a way to configure this conditional formatting option programmatically and if so how can we do this (I was not able to find any resource for this in your documentation)?
Conditional formatting (this example does it via column tags - a more convenient API will also be provided)
let t = grok.data.demo.demog();
t.col(‘height’).tags[’.color-coding-conditional’] = `{“20-30”:"#00FF00",“30-200”:"#220505"}`;
grok.shell.addTableView(t);
@donufriienko, can you please reflect all of that in our wiki as well? Thanks!
We gave a try today and it’s working very well so far! However I am running in some edges when using >= or <= checks! Are this operands supported by native Datagrok and if yes how do they need to be specified.
Concrete example:
Having this rule set: {"<= 0.1":"#ff5140","> 0.1":"#ffdf5b",">= 10":"#73aff5"} should resolve in this color schema (value: color):
11: #73aff5
10: #ff5140
9.9: ffdf5b
However what we get is following (value: color):
11: #73aff5
10: #ffdf5b
9.9: ffdf5b
So for me it looks like the “=” is not taken into the colouring!
Can you add some content for this? Is there some documentation what conditional colouring values are supported by datagrok
@andreas.gasser.novartis.com , I hope to cover all edge cases of conditional coloring in our documentation as soon as possible. In the meantime, based on personal observation, let me suggest swapping the last two rules (so that >= comes before >), the operator precedence may impact the resolution of colors you described. For instance, here the values equal to or greater than 60 have the color given in the rule >=60, but that wouldn’t be the case if the rule were applied last:
let t = grok.data.demo.demog();
t.col('age').tags['.color-coding-type'] = 'Conditional';
t.col('age').tags['.color-coding-conditional'] = `{"<=50":"#00FF00", ">=60": "#0b00a0", ">50":"#220505"}`;
grok.shell.addTableView(t);