WJSoftware / wjfe-dataview

Svelte v5 table component suitable for examination of extensive tabular data.
https://wjsoftware.github.io/wjfe-dataview/
MIT License
7 stars 0 forks source link

Master-child column position synchronization feature #14

Open webJose opened 5 months ago

webJose commented 5 months ago

Motivation

When visualizing tabular data that can be drilled down to more specific records (which is a scenario this data view component is meant to address with its expandable rows feature), it is commonplace that the drilldown table (the table shown as the result of expanding a row) contains at least a subset of the parent table's columns or vice versa.

For example, a financial summary table with columns Continent, Month, Year, Total Income might be the result of summing up more detailed records, say, by individual store sales. Drilling down (expaning a row) a line of this financial summary could reveal an intermediate summary by country with columns Country, Month, Year, Total Income. This intermediate summary, in turn, could be drilled down further.

Proposal

It is a nice visual aid for users reading the data if the columns that are common between the "master" table and the "child" table were aligned. Furthermore, alignment should remain intact even if the user:

Furthermore, a single master table should be able to synchronize any number of child tables.

Requirements

webJose commented 3 months ago

This is a worksheet that depicts what I have so far identified for the algorithm. Anyone is free to comment on the worksheet.

Worksheet link