Gist 51f02b43d105ab18ddb3
✓ Published0🌍 Public
Aandybak
Last edited Jul 13, 2014
Created on Jul 13, 2014
This example shows a data table rendered as an interactive visualization, where each row represents a set of arrival or departure records. It displays a collection of rows fetched from a model, with the display logic choosing between arrival-related and departure-related attributes based on the data type. The code uses a cached property decorator to compute the rows lazily, iterating over object attributes that end with `arrival_set` or `departure_set` and returning the first non-empty result. The rendering approach relies on the object’s attribute inspection and the underlying database query API, though no specific charting library is visible in the provided snippet.
AI-generated description