-
Notifications
You must be signed in to change notification settings - Fork 842
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
[DISCUSS] Datagrid component specifications #1689
Comments
@elastic/machine-learning @elastic/apm-ui @zumwalt @elastic/kibana-app @MichaelMarcialis @elastic/cloud-design We're gearing up to start on providing true data tables / grids to EUI. If you have any requirements please let us know. |
@elastic/ml-ui ping ^^ Looks really interesting :D |
If they're meant to extend the existing tables, I don't think we have any additional requirements. We sometimes have elements like i.e. the Impact bar (which is a the |
Looking forward to this - am liking the option for a denser data view. |
This sounds great! Being able to shade all cells by a matrix of numeric values (one for each cell) would be a nice feature for ML use cases such as displaying feature importance. For such cases one usually has (row normalised) collections of numbers. One would shade the cells with higher values for this quantity darker and cells with lower values lighter. (Note the numbers are not actually displayed in the table just used for shading.) |
One practical feature for us, that as far as I saw isn't on the list yet, would be the possibility to add Options (or most likely an option menu) to each individual column header. That way we are able to provide additional configuration options per column, which might be very useful especially in discover. |
sounds really great. What about the ability to rename a column? just the label, not the field. |
This should be considered a must have, I guess it because everytime I tried to convince Business people to use Kibana, after a week they told me:
...and, sadly, they were right |
Is there any plans to add selection to the datagrid component? |
Yes, it is on the near term roadmap. |
when could data grid support filter by columns |
@seraphjiang Providing built-in search/filtering capabilities is a lower priority, and not currently scheduled. We have seen many different ways apps want to expose to their uses for filtering, from a basic text entry to a search grammar to a visual query builder, and are still exploring the options in this area. At the same time, it is fairly straight-forward for an application to build its own filtering layer and limiting the data going into |
This is closable now that data grid is fairly mature. Any items still left will be converted to new issues. |
Summary
The EUI tables are great, but they don't provide the level of density and scalability that we need for tools like Discover, data viz and ML. This spec proposes we either adjust our tables or add a new component to deal with those needs. This spec also assumes that our current Search and filter components will work with these new data grids the way our tables currently do.
Guiding principles
We're aiming at two crowds with these features:
This is not a replacement for CRUD tables (which the EUI tables do quite well with). This component is primally aimed at a need for data analysis.
Required additional features
These are on top of what we already do in EuiTable. For example... we still should retain row based actions in the way we currently provide them.
The style of table styles should be automatically decided by the content
One of the biggest problems with our current tables is that people often don't utilize the
type
prop on the data being provided. For example, any numeric value should be right aligned and presented in a monospace font. Any consistantly long form content should be automatically truncated and have a tooltip applied...etc. It would be nice to figure out ways to do this automatically based upon the content we're given.You should be able to define the columns displayed in the grid
A good UI example of how we can do this by providing a display options menu that shows the available and visible columns in a list.
Alternatively, this can be done in a modal with sort
You should be able to sort the results against multiple columns at once
https://datatables.net/examples/basic_init/multi_col_sort.html
You should be able to define the order of the columns
You should be able to apply styling to data grids through props
Off-hand I think the following styling props / abilities should be available
You should be able to set row grouping for data grids
Row groups will help categorize data into easy to scan content. As an example. Given
{names, age, city and country}
. I should be able to group the results by country.You should be able to output a CSV of any data grid
I don't know where this belongs, and it might need to be at the Kibana level, but it would be nice to always give people a very quick way to output the exact data in a visible table (meaning just the columns that are visible) into a CSV format
You should be able to optionally allow grids to scroll
You should be able to set fixed columns and headers in scrollable tables
For when the above is present
You should be able to resize column width at will
You should be able to provide an arbitrary color or icon to individual cells to make them stand out
We should make a decision on our search mechanisms and tooling
The KQL autocomplete interface exists in Kibana to sort content. We use a more simple "github" style system in EUI. Should they coexist? Should we bring autocomplete to the EUI version?
Reference material
The text was updated successfully, but these errors were encountered: