-
Notifications
You must be signed in to change notification settings - Fork 0
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
Discovery: Improve table responsiveness: Experiment with different libraries #11
Comments
Note. an issue seems to exist with text fitting vertically in a cell. I am not sure if this related to the the text getting cut off horizontally but capturing it here for now. |
@erogray from what I can see the vertical cut off, tested on my simple prototype, or rather the lack of built in vertical responsiveness would be an additional bug to the existing "width resizing calculation issue". For the vertical height issue it would be necessary to measure the the content height of the cell that holds the text and report that back to the rendering. It looks like it's not impossible though. There is some information about it here: If we are to work on it it would make sense I think to add it to a separate but related issue. Let me know if that works? And, that said. My understanding is that one of the features of "Fixed data table" is that it allows for lazy loading of data, so you can have vast amounts of rows in a query. https://github.com/facebookarchive/fixed-data-table . If that is not important then it might well make sense investigating other table building options or supplying a choice. Also, Gerardo pointed out that on one of his projects they had used a library which they had some success with. |
Iceboxing this for the moment in favour of this shorter term solution for Georgia in #142 Table responsiveness: reduce width of columns with less data. |
Discussed with @erogray and moving back into in progress. Testing this out with an implementation of https://github.com/vaiRk/responsive-fixed-data-table/blob/master/src/responsive-fixed-data-table.js |
I took an initial look into this and I don't think that we will find a complete responsive solution while still using fixed data table 2. Facebook no longer maintains the fixed data table 1. I would suggest that the best way forward would be to try out / prototype some of the alternatives which could work with React dash. CC @erogray |
IntroductionObjectivesTo aid in choosing a data table library which It would have been nice to have found more react libraries to compare, and it What is a data table?Data tables present tabular data. Data tables should contain table header cells that identify the content of their respective row and/or columns. Tables with proper table headers provide additional information and navigation for screen reader users. Criteria used for choosing a libraryAccessibilityOptimally, we would be 508 compliant: Table headersTable headers describe the content of their respective row or column. They can be identified by screen readers when data cells are encountered. Aria describe byThis is a pointer to a DOM element that describes the table.
Scopehttps://webaim.org/techniques/tables/data#scope ResponsivenessThe library should include responsive components that will work well at JSON consumptionThe library that we choose will need to be able to work within different APIs Handling of large data setsThis could mean using lazy loading of data and/or AJAX to make make requests to InternationalizationThis is the capacity to internationalize the interface. DataTables evaluationBased on use of the WAVE web accessibility tool.
Accessibilityhttps://datatables.net/new/1.9 Documentationhttps://datatables.net/manual/ajax InternationalizationVia plugin ConclusionProject seems the most robust of the three. Table saw evaluation
Demo URLhttp://filamentgroup.github.io/tablesaw/demo/stack.html AccessibilityHas scope, but it is not applied to the the td cell, so would not pass 508 in ResponsiveIs capable of hiding selected columns for narrower screens. Documentationhttps://www.filamentgroup.com/lab/tablesaw.html ConclusionMight need a little work for 508 passing. Table Saw uses progressive React virtualized evaluation
React virtualizedResponsivenessDoes not seem to be fully responsive in the demo. JSON consumptionLarge data set handling AJAXExcellent documentationInternationalizationConclusionData Tables stands out as the most complete of these three libraries. React Saw |
@kimwdavidson I have created a React Dash issue for this here: NuCivic/react-dash#92 I would like to start a new ticket for investigating using the DataTables library with Georgia Schools data, so that we can compare it to Fixed Data Tables. Estimating 15 hours for the prototype. |
As a react dash developer, I'd like to be able to make tables to contain data and/or text, that resize correctly at different widths, so that I can make dashboards that are correctly responsive.
The text was updated successfully, but these errors were encountered: