Skip to content

Commit

Permalink
fix: Chart rendering will shake when SSR is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCurtis committed Nov 29, 2023
1 parent 6cba216 commit 759b29e
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class BarHorizontal2DComponent extends BaseChartComponent {
ngOnInit() {
super.ngOnInit();
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class BarHorizontalNormalizedComponent extends BaseChartComponent {
ngOnInit() {
super.ngOnInit();
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class BarHorizontalStackedComponent extends BaseChartComponent {
ngOnInit() {
super.ngOnInit();
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class BarVertical2DComponent extends BaseChartComponent {
ngOnInit() {
super.ngOnInit();
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class BarVerticalNormalizedComponent extends BaseChartComponent {
ngOnInit() {
super.ngOnInit();
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class BarVerticalStackedComponent extends BaseChartComponent {
ngOnInit() {
super.ngOnInit();
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class SeriesVerticalComponent implements OnChanges {

ngOnInit() {
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class BubbleChartComponent extends BaseChartComponent {
ngOnInit() {
super.ngOnInit();
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class BubbleSeriesComponent implements OnChanges, OnInit {

ngOnInit() {
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class CircleSeriesComponent implements OnChanges, OnInit {
this.gradientFill = `url(#${this.gradientId})`;

if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export class LineChartComponent extends BaseChartComponent implements OnInit {
ngOnInit() {
super.ngOnInit();
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class LineComponent implements OnChanges, OnInit {

ngOnInit() {
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export class PolarChartComponent extends BaseChartComponent implements OnInit {
ngOnInit() {
super.ngOnInit();
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class BubbleChartInteractiveComponent extends BaseChartComponent {

ngOnInit() {
if (isPlatformServer(this.platformId)) {
this.isSSR = true;
this.isSSR = false // skip;
}
}

Expand Down

0 comments on commit 759b29e

Please sign in to comment.