Skip to content

Commit e4ff3d2

Browse files
committed
complete fixing graphset
1 parent 81206bf commit e4ff3d2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

projects/zingchart-angular/src/lib/zingchart-angular.component.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,13 @@ export class ZingchartAngularComponent implements AfterViewInit, OnDestroy, OnCh
150150
if(this.id) {
151151
this.chartId = this.id;
152152
}
153-
// if (this.series) {
154-
// data["series"] = this.series;
155-
// }
156153
if (this.series) {
157-
if ("series" in this.config) {
158-
data["series"] = this.series;
159-
} else if ("graphset" in this.config) {
154+
if ("graphset" in this.config) {
160155
if (this.config.graphset.length === 1) {
161156
data["graphset"][0].series = this.series;
162157
}
158+
} else {
159+
data["series"] = this.series;
163160
}
164161
}
165162
this.chartWidth = this.width || DEFAULT_WIDTH;

0 commit comments

Comments
 (0)