#25173·highcharts

Google Sheets connector builds off-by-one end-row ranges

Author: OskarEichlerCreated Aug 30, 2026Updated Sep 28, 2026
LabelsType: BugProduct: HighchartsStatus: Pending replyStatus: Stale

Expected behaviour

startRow and endRow are zero-based row indexes. The Google Sheets A1 range should add one to both endpoints, matching the established Data module implementation. endRow: 0 should select row 1 rather than be treated as unspecified.

Actual behaviour

buildQueryRange() adds one to startRow but appends a truthy endRow unchanged. endRow: 5 produces an inclusive range ending at row 5 instead of row 6, while endRow: 0 falls through to the unbounded Z suffix and loads all rows.

Live demo with steps to reproduce

javascript
Highcharts.DataConnector.types.GoogleSheets.buildQueryRange?.({
  startRow: 0,
  endRow: 5
}); // A1:Z5, expected A1:Z6

The same behavior is visible in the request URL constructed for a connector with those options.

Product version

Highcharts source at 13.0.2 (48b5b3e99a0fa9aae9a357165a5a916f504afeca).

Affected browser(s)

All environments; this is range construction.