Skip to content

Commit 9c3224d

Browse files
author
Siwei Zhang
committed
Update parsing of sampling to match tsp specification
The tsp-typescript-client was modified to comply to tsp specification for sampling, update accordingly here.
1 parent 514215e commit 9c3224d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

local-libs/traceviewer-libs/react-components/src/components/generic-xy-output-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ export class GenericXYOutputComponent extends AbstractTreeOutputComponent<Generi
388388

389389
private buildLabels(xValues: Sampling, unit: string): string[] {
390390
if (isRangeSampling(xValues)) {
391-
return xValues.map(range => `[${range[0]} ${unit}, ${range[1]} ${unit}]`);
391+
return xValues.map(range => `[${range.start} ${unit}, ${range.end} ${unit}]`);
392392
} else if (isCategorySampling(xValues)) {
393393
return xValues.map(val => `${val} ${unit}`);
394394
} else if (isTimestampSampling(xValues)) {

0 commit comments

Comments
 (0)