in src/converter/data/dataConverter.ts [419:453]
protected applyXArguments(
series: IDataRepresentationSeries,
axisValue: DataRepresentationAxisValueType,
type: DataRepresentationTypeEnum,
): void {
if (series.x.min === undefined) {
series.x.min = axisValue;
}
if (series.x.max === undefined) {
series.x.max = axisValue;
}
if (type === DataRepresentationTypeEnum.DateType
|| type === DataRepresentationTypeEnum.NumberType) {
if (axisValue < series.x.min) {
series.x.min = axisValue;
}
if (axisValue > series.x.max) {
series.x.max = axisValue;
}
} else if (type === DataRepresentationTypeEnum.StringType) {
const textLength: number = this.getLength(axisValue as string);
if (textLength < this.getLength(series.x.min as string)) {
series.x.min = axisValue;
}
if (textLength > this.getLength(series.x.max as string)) {
series.x.max = axisValue;
}
}
}