Multiline values now get flattened in the filters using the “|” symbol. Special support for multi-value cells in filters will be coming as well.
As promised, we have added filtering support for multi-value cells. In order to make the column filter appear this way, simply set the column’s tag to the value separator (you can use ‘\n’ for newline-separated values). You can do it either in the UI, or programmatically:
t.col('languages').setTag(DG.TAGS.MULTI_VALUE_SEPARATOR, '\n');
Check out the script here: https://dev.datagrok.ai/js/samples/ui/viewers/filters/multi-value-filter. A picture is worth a thousand words, and an animated picture is probably worth a bit more:
It is just a first version, and multiple improvements are already planned:
- Automatic detection of the multi-value columns based on the content
- Performance improvements
- Filter / selection / count indicators per category
@asantrosyan.gnf.org @timothy.danford.novartis.com @nikolaus.stiefl.novartis.com @andreas.gasser.novartis.com @gregori.gerebtzoff.novartis.com @nico.pulver.novartis.com @nik.clare.gmail.com
This looks great and will enable many future analysis - thanks a lot.
One question - is this already supporting bar chart plotting of multi-value columns or is that one of your future improvements you refer to?
thanks!
Not yet, bar chart plotting of such columns is a lot more complicated issue, and for a good reason - it’s hard to even define what the desired behavior should be in respect to stacking, color-coding, aggregation functions, etc. I have some ideas about it, but it’s far from a good solution, so let us think a bit more about it.
Sharing with you a new extension of the Datagrok platform — the Chord
viewer. It visualizes links between categorical data in a circular layout, such as economic flows, gene interactions, or connections in a network. We’ve added a number of sorting and aggregation functions, as well as options for choosing color and direction, and integrated filtering and selection mechanics on par with the platform’s native viewers. The Chord
diagram is available both on https://public.datagrok.ai and https://dev.datagrok.ai as part of the Viewers
package.
The demo project: https://public.datagrok.ai/p/Donufriienko.ChordDiagram
Default tooltip behavior in the grid has been changed. Now, only the columns that are not visible in the grid get included in the tooltip, making it look a bit cleaner in case when there are not that many columns in a table. This is controlled by the grid’s Show Visible Columns in Tooltip
property.
Note that the default tooltip behavior could be overridden by opening the View | Tooltip...
dialog, and either selecting columns of interest, or designing a form.
We’ve made drag-and-dropping columns a lot more intuitive and useful by adding the small drop zones for horizontal panning that appear to the left and right of the column headers.
We heard you loud and clear, multi-axis line chart is indeed a very useful feature. We’ve just implemented it, check it out:
We’ve added an ability to using multiple marker shapes in the Scatter Plot.
And now you can define markers not only by color or size but also by a shape.
There are a large number of preset shape of markers. You can also set the size and border thickness for markers.
We can create markers of any specific shape. If there is such a need - let us know.
Good news for anyone who often filters data based on a large number of values!
As you know each categorical filter group has a search field for filtered values. Click the Search icon to the right of the filter caption to open it. This icon appears when you hover the mouse over the filter.
If you start typing text in the field, the filter will show all values that partially contain this text. But if you typing the words, separating them with a comma, then the filter will show only those values that exactly match the each one.
It is also allowed to paste large multi-line text from the clipboard into the search field. In this case, the filter will also display those values that exactly match the each item. To select or deselect only the found values of the category - click the checkbox to the left of the search field. Note that other (not displayed) values of the categories do not change their choice.
Thus, you can quickly and flexibly set filters for a large number of values.
Now it’s more convenient to set the shape of markers.
Just select the icon you want from the popup menu:
Liking the timeline viewer. Is there an ability to add a legend of the event types
Thanks, Ed. We’ve added a legend for the ‘Color By’ column, its visibility can be adjusted via ‘Legend Visibility’ property (the auto mode displays the legend when the number of categories doesn’t exceed 100). We are currently testing this and other improvements (version 0.1.0). I’ll write back once it’s available in your environment. The legend functions mostly as in the standard viewers (you can filter by clicking on a category label, etc.)
Map viewer
Map viewer shows geospatial data on a map as either markers or a heatmap. It displays data in geographic formats, like GEOJSON, TOPOJSON, KML, and KMZ. You can also add a map viewer to your custom table. When so, it automatically detects columns with longitude and latitude values.
To configure a map, click the Gear icon on top of the viewer and use the info panels on the Context Pane. For example, you can:
- Color-code points using the Color property.
- Size-code points using the Size property.
- Control point size by setting the Marker Min Size and Marker Max Size properties.
To enable a heatmap, use one of the options:
- On the Layers Menu, turn on the heatmap layer visibility.
- On the Context Pane, set the Render Type property to
heatmap
.
A map viewer responds to data filtering and selection. The selected points on a map form a separate layer so you can process them separately. For example, you can export them to a new table, as well as any other layer’s data. To do that, use the corresponding icon on the Layers Menu.
Controls:
Action | Control |
---|---|
Zoom in | Mouse Wheel Up or Plus |
Zoom out | Mouse Wheel Down or Minus |
Add a point to selection | Shift+Click the point |
Select multiple points | Ctrl+Mouse Drag |
Added Spline and Fill Spline options that control whether the histogram is rendered as a bar or as a spline (it’s always rendered as spline when the Split column is set), and whether the area is filled or not.
More options for histograms in the multi-distribution mode: ability to show markers, and a choice whether or not distributions should be normalized (you compare distributions when “normalize” is on, or absolute values, otherwise).
New help
property introduced for all core viewers. It could be either a markdown, or a URL.
Text rendering has been significantly improved by introducing smart line wrapping (first by new lines, then by words, then by characters).