Intro
Part of the Data Tooltip Component Family.
In-lane data tooltips appear as an overlay within the chart when the user interacts with a data point. There are two interaction modes: a Tap gesture (single tap on a data point) and a Scrub (press + drag) gesture (press and drag left/right to scrub across the chart).
Anatomy
- Primary Label: Dimension label for the selected data point
- Primary Value: Key metric value for the selected data point
- Horizontal Divider: Separates primary and secondary content
- Data Rows: Holds secondary label/value pairs for the selected point
- Secondary Label: Dimension label for the secondary data point
- Secondary Value: Value for the secondary data point
- Close Button (optional): Dismisses the tooltip. Present on tap interaction for in-lane tooltip only.
- Show More Button (optional): Reveals truncated content and additional rows by presenting a detail panel (bottom sheet). Present in specific cases for in-lane tooltip only – see Show More for more details.
- Pointer (optional): Connects in-lane tooltip with the user’s active scrubbed area on the chart. Present on scrub interaction for in-lane tooltip only.
In-Lane Data Tooltips – Anatomy
Types
There are two types of Data Points: Single and Multi. The user’s selection on the chart will determine which is shown, where a single selection would show a single data point, and a group selection would show a multi-data point.
Single Data Point
Single Data Point – In-Lane Tooltip and Show More
Multi-Data Point
Multi-data point tooltips are used to show all related data points to an area of the chart.
Multi-Data Point – In-Lane Tooltip and Show More
Behavior and Interaction
There are two interaction modes for the in-lane data tooltip: Tap gesture and Scrub (press + drag) gesture. These behave differently depending on if the chart is single or multi series.
Tap gesture
The in-lane data tooltip is triggered by a single tap on a data point. To close the tooltip, the user can select the close button, or tap away from the data point.
Tap Interaction on a Scatter Chart
Multi-Series
For multi-series charts, a tap on a chart point will display a single data point tooltip similarly to a single-series chart.
Tap Interaction on Multi-Series Chart – Single Data Point
Additionally, the user can tap on a segment hit zone to show a multi-data point tooltip. The chart is divided into tap zones based on the midpoint between adjacent data points. Each zone spans from the midpoint before a data point to the midpoint after it. Tapping this area triggers the multi-data point tooltip anchored at the tap position.
Tap Interaction on Multi-Series Chart – Multi-Data Point
Scrubbing (press + drag) gesture
The in-lane data tooltip is triggered by a press-and-hold, then dragged left or right to scrub across the chart. As the user scrubs across different data points, the values inside the tooltip will update with the selected values. When the user lets go of the scrub, the tooltip will close if it is a single data point tooltip, but will persist if it is a multi-data point tooltip.
Scrubbing interaction on an Area Chart
Multi-Series
On multi-series charts, scrubbing on a chart will display a multi-data point tooltip. Unlike the single series chart, when the user lets go of the scrub, the tooltip persists and the close button appears.
Scrubbing From June to April on Multi-Series Chart – Multi-Data Point
For grouped chart types, if the user press-holds the bar to start, the scrub goes through the individual segment. If they start on a segment hit zone, the scrub goes through groupings.
Scrub on Bar Goes Through Individual Points
Scrub on Segment Hit Zone Goes Through Groupings
Show More
The Show More button is present when any of the following cases are true:
- Label or value is truncated
- More than 3 data rows
When the Show More button is selected, the user is presented with a detail panel (bottom sheet) at the bottom of the screen and the in-lane tooltip is dismissed. For more details, see the Bottom Sheet specification.
Show More Interaction Opening the Bottom Sheet
Pointer Behavior
The pointer centres with the selected data segment or points. For more details see Pointer Specification.
- If the tooltip is within 16 pt of the container edge, the pointer repositions under the tooltip to remain centred on the scrub selection.
- The bottom of the pointer always ends at the data mark.
- For horizontal bar charts, the scrub pointer always points to the edge of the bar.
- For multi-series charts, the pointer always anchors to the horizontal (or vertical, depending on axis) midpoint of the target segment's bounding box, and vertically spans to the bottom axis line.
- For grouped segments: treat the group as a single bounding box — pointer anchors to the midpoint of the combined span, not any individual segment within it.
Edge Placement and Center Positioning
Horizontal Bar Charts Pointers are Positioned at the End
Responsiveness
Joule Work Mobile does not support landscape display at this time.
Accessibility
Dynamic Type – Bottom Sheet
The Show More detail panel (bottom sheet) supports Dynamic Type with a maximum scale of 2x. For more details see Show More Detail Panel Specification.
Bottom Sheet with 2x Dynamic Type
Related Links
Contact
Have questions or input? We'd love to hear from you – reach out via dna-web-kit@sap.com or the DNA Design System Teams channel.