Skip to content

Improvements to grouped time series line chart #61

@jimsafley

Description

@jimsafley

See #41

Several improvements are proposed for the grouped time series line chart diagram, which is produced by the "Count of items with property values in a time series" dataset type.

Linkable tooltip values

Each value displayed in the tooltip should link to a browse page showing only the items that contributed to that data point: items matching that property value within that date bucket. Browse URLs can be built server-side in CountItemsPropertyValuesTimeSeries::getDataset() and embedded per row in the dataset, following the same pattern as the network graph dataset type. The URL would combine NumericDataTypes timestamp range parameters (numeric[ts][gte], numeric[ts][lt]) with a property value filter (property[0][type]=eq).

Pinnable tooltip

The tooltip currently disappears on mouseout. It should persist when clicked and dismiss on a second click, so users can follow the links described above. The network graph diagram (item_relationships.js) already implements this pattern via a click handler and can serve as a reference implementation.

Note: this improvement is dependent on linkable tooltip values. Without clickable links there is little reason to pin the tooltip.

Value ordering

Values in the tooltip appear in the order they were entered in the admin form. This may be intentional, so entry order should be preserved as the default. An optional diagram setting -- "Sort values by: entry order / total count descending" -- would allow sorting by total count across all buckets. The sort would be computed once from nestedDataset before any hover interaction, keeping the order stable as the user moves across the chart.

Note: sorting per hover position was considered but rejected, as it causes the tooltip to reorder as the mouse moves, which is disorienting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions