Event data
GazePlotter supports the upload of event data files that add time-based information layers to scarf plots. Event channels represent temporal intervals — for example, dynamic AOI visibility periods — and are rendered as colored lines beneath each participant’s gaze sequence.
Supported sources
Event data can be exported from the following eye-tracking platforms:
- SMI BeGaze — XML export from the AOI Editor
- Tobii Pro Lab — JSON export from the AOI tab
Additionally, GazePlotter accepts a Custom CSV format for manual event definitions. See Custom CSV event format below.
Exporting from SMI BeGaze
- Open AOI Editor in the SMI BeGaze software.
- Click Save to export the AOI visibility data as an
.xmlfile.
Exporting from Tobii Pro Lab
- Open the AOI tab in Tobii Pro Lab.
- Click Export to export the AOI data as a
.jsonfile.
Uploading event files
Event files must be uploaded together with eye-tracking data files in the same file selection. They cannot be uploaded separately.
- Click Import in the workspace header.
- In the file picker, select both your eye-tracking data files and your event files.
- Click Open to start the upload.
GazePlotter automatically separates event files from eye-tracking data:
- All
.xmlfiles are classified as event files (SMI BeGaze format). .jsonfiles are classified as event files only when multiple files are selected and the file matches the Tobii AOI format. A single.jsonfile is always treated as a workspace import.
After the eye-tracking data is parsed and loaded, the Map Event Files modal appears automatically.
Mapping event files
The Map Event Files modal assigns each detected event file to a stimulus and participant scope.
For each event file, select:
- Stimulus — The stimulus the event file belongs to.
- Participant — One of:
- Ignore (default) — Skip this file entirely.
- To all — Apply the event data to every participant.
- A specific participant name — Apply only to that participant.
Note: When any file is set to To all, individual participant options are hidden for other files targeting the same stimulus.
Click Apply to process the mapping. The event channels are immediately added to the scarf plot for the assigned stimulus.
Custom CSV event format
You can define event channels manually using a CSV file with the following required columns:
| Column | Type | Description |
|---|---|---|
stimulus | string | Must match a stimulus name in the loaded data |
participant | string | Must match a participant name, or * to apply to all participants |
eventName | string | Event channel name |
start | number | Start time in milliseconds |
duration | number | Duration in milliseconds (use 0 for instant events) |
Example:
stimulus,participant,eventName,start,duration
Image1,P01,AOI_Face,0,500
Image1,P01,AOI_Face,1200,300
Image1,*,Marker,2000,0 The delimiter is auto-detected (, or ;). Columns can appear in any order.
Custom CSV event files are self-describing — they contain stimulus and participant information directly, so the Map Event Files modal does not appear for them. Rows referencing unrecognized stimulus or participant names are skipped with a warning.
Custom CSV event files can be uploaded together with SMI or Tobii event files in the same file selection. All sources are merged before being applied.
After uploading
Event channels appear as colored lines in the scarf plot beneath each participant’s gaze row. To modify event channel names, colors, ordering, or visibility, use Event customization from the scarf plot menu. See Event Library for details.
Note: When multiple event files target the same stimulus, channels with the same name are merged — their event buffers are concatenated per participant rather than overwritten.