in src/EnhancedScatterChart.ts [2609:2659]
private updateAxis(): void {
this.adjustMargins();
const yAxisOrientation: string = this.yAxisOrientation,
showY1OnRight: boolean = yAxisOrientation === yAxisPosition.right;
this.xAxisGraphicsContext.attr(
"transform",
manipulation.translate(
EnhancedScatterChart.DefaultAxisOffset,
this.viewportIn.height));
this.yAxisGraphicsContext.attr(
"transform",
manipulation.translate(
showY1OnRight
? this.viewportIn.width
: EnhancedScatterChart.DefaultAxisOffset,
EnhancedScatterChart.DefaultAxisOffset));
this.svg.attr("width", this.viewport.width)
.attr("height", this.viewport.height);
this.svgScrollable.attr("width", this.viewport.width)
.attr("height", this.viewport.height);
this.svgScrollable.attr("x", EnhancedScatterChart.DefaultAxisOffset);
const left: number = this.margin.left,
top: number = this.margin.top;
this.axisGraphicsContext.attr("transform", manipulation.translate(left, top));
this.axisGraphicsContextScrollable.attr("transform", manipulation.translate(left, top));
this.clearCatcher.attr("transform", manipulation.translate(-left, -top));
if (this.isXScrollBarVisible) {
this.svgScrollable.attr("x", left)
.attr("width", this.viewportIn.width);
this.axisGraphicsContextScrollable.attr("transform", manipulation.translate(0, top));
this.svg.attr("width", this.viewport.width)
.attr("height", this.viewport.height + this.ScrollBarWidth);
}
else if (this.isYScrollBarVisible) {
this.svgScrollable.attr("height", this.viewportIn.height + top);
this.svg.attr("width", this.viewport.width + this.ScrollBarWidth)
.attr("height", this.viewport.height);
}
}