amcharts3-angular2 icon indicating copy to clipboard operation
amcharts3-angular2 copied to clipboard

Cannot read property graphs of undefined when updating

Open jimmykane opened this issue 7 years ago • 5 comments

When updating the chart sometimes I get

 TypeError: Cannot read property 'graphs' of undefined

This happens in:

this.AmCharts.updateChart(this.chart, () => {

Somehow some internal call resets the graph.

To overcome this I have to create a new chart on every change (OnChanges)

What is going on?

jimmykane avatar Jun 22 '17 13:06 jimmykane

To clarify this happens when pushing new graphs on the chart

jimmykane avatar Jun 22 '17 13:06 jimmykane

Hi there, I have similar error, may be not. I'm getting data from REST, about 3k points like this [ {x, y}, ... ]

create amchart instance

	public ngAfterViewInit(): void {
		this.chart = this.AmCharts.makeChart('chartReturnDrawdown', this.options);
	}

then on data load (in ngOnInit section) I'm doing this:

public ngOnInit() {
    this.service.getData().subscribe(
        points => {
	    this.AmCharts.updateChart(this.chart, () => {
                this.chart.dataSets[ 0 ].dataProvider = points;
            });
        }
    );
}

and then I'm getting this error: (but it happens not always)

core.es5.js:1020 ERROR TypeError: d.clear is not a function at b.clear (http://127.0.0.1:3001/main.bundle.js:129811:187) at b.validateNow (http://127.0.0.1:3001/main.bundle.js:129808:427) at http://127.0.0.1:3001/main.bundle.js:38834:19 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Zone.run (http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at NgZone.runOutsideAngular (http://127.0.0.1:3001/main.bundle.js:4122:83) at AmChartsService.updateChart (http://127.0.0.1:3001/main.bundle.js:38832:19) at SafeSubscriber._next (http://127.0.0.1:3001/main.bundle.js:127411:28) at SafeSubscriber.__tryOrUnsub (http://127.0.0.1:3001/main.bundle.js:15782:16) at SafeSubscriber.next (http://127.0.0.1:3001/main.bundle.js:15729:22) at Subscriber._next (http://127.0.0.1:3001/main.bundle.js:15669:26) at Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at CatchSubscriber.Subscriber._next (http://127.0.0.1:3001/main.bundle.js:15669:26) at CatchSubscriber.Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at MapSubscriber._next (http://127.0.0.1:3001/main.bundle.js:54607:26) at MapSubscriber.Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at MapSubscriber._next (http://127.0.0.1:3001/main.bundle.js:54607:26) at MapSubscriber.Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at FilterSubscriber._next (http://127.0.0.1:3001/main.bundle.js:57963:30) at FilterSubscriber.Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at MergeMapSubscriber.notifyNext (http://127.0.0.1:3001/main.bundle.js:64754:30) at InnerSubscriber._next (http://127.0.0.1:3001/main.bundle.js:144075:21) at InnerSubscriber.Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at XMLHttpRequest.onLoad (http://127.0.0.1:3001/main.bundle.js:47677:30) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at XMLHttpRequest.ZoneTask.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29321:38) at ____________________Elapsed_1272_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleEventTask (http://127.0.0.1:3001/polyfills.bundle.js:29096:25) at zoneAwareAddListener (http://127.0.0.1:3001/polyfills.bundle.js:30113:14) at XMLHttpRequest.proto.(anonymous function) [as addEventListener] (http://127.0.0.1:3001/polyfills.bundle.js:30260:20) at Observable._subscribe (http://127.0.0.1:3001/main.bundle.js:47761:17) at Observable._trySubscribe (http://127.0.0.1:3001/main.bundle.js:15133:25) at Observable.subscribe (http://127.0.0.1:3001/main.bundle.js:15121:27) at Object.subscribeToResult (http://127.0.0.1:3001/main.bundle.js:32685:27) at MergeMapSubscriber._innerSub (http://127.0.0.1:3001/main.bundle.js:64741:38) at MergeMapSubscriber._tryNext (http://127.0.0.1:3001/main.bundle.js:64738:14) at MergeMapSubscriber._next (http://127.0.0.1:3001/main.bundle.js:64721:18) at MergeMapSubscriber.Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at ScalarObservable._subscribe (http://127.0.0.1:3001/main.bundle.js:64162:24) at ScalarObservable.Observable._trySubscribe (http://127.0.0.1:3001/main.bundle.js:15133:25) at ScalarObservable.Observable.subscribe (http://127.0.0.1:3001/main.bundle.js:15121:27) at MergeMapOperator.call (http://127.0.0.1:3001/main.bundle.js:64696:23) at Observable.subscribe (http://127.0.0.1:3001/main.bundle.js:15118:22) at FilterOperator.call (http://127.0.0.1:3001/main.bundle.js:57933:23) at Observable.subscribe (http://127.0.0.1:3001/main.bundle.js:15118:22) at MapOperator.call (http://127.0.0.1:3001/main.bundle.js:54578:23) at Observable.subscribe (http://127.0.0.1:3001/main.bundle.js:15118:22) at MapOperator.call (http://127.0.0.1:3001/main.bundle.js:54578:23) at Observable.subscribe (http://127.0.0.1:3001/main.bundle.js:15118:22) at CatchOperator.call (http://127.0.0.1:3001/main.bundle.js:81100:23) at Observable.subscribe (http://127.0.0.1:3001/main.bundle.js:15118:22) at ReturnChartComponent.loadChartData (http://127.0.0.1:3001/main.bundle.js:127409:14) at ReturnChartComponent.ngOnChanges (http://127.0.0.1:3001/main.bundle.js:127458:22) at checkAndUpdateDirectiveInline (http://127.0.0.1:3001/main.bundle.js:11109:19) at checkAndUpdateNodeInline (http://127.0.0.1:3001/main.bundle.js:12608:17) at checkAndUpdateNode (http://127.0.0.1:3001/main.bundle.js:12547:16) at debugCheckAndUpdateNode (http://127.0.0.1:3001/main.bundle.js:13408:59) at debugCheckDirectivesFn (http://127.0.0.1:3001/main.bundle.js:13349:13) at Object.eval [as updateDirectives] (ng:///AppModule/TraderChartComponent.ngfactory.js:22:9) at Object.debugUpdateDirectives [as updateDirectives] (http://127.0.0.1:3001/main.bundle.js:13334:21) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12514:14) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execEmbeddedViewsAction (http://127.0.0.1:3001/main.bundle.js:12837:17) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12515:5) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execComponentViewsAction (http://127.0.0.1:3001/main.bundle.js:12811:13) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12520:5) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execEmbeddedViewsAction (http://127.0.0.1:3001/main.bundle.js:12837:17) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12515:5) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execComponentViewsAction (http://127.0.0.1:3001/main.bundle.js:12811:13) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12520:5) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execEmbeddedViewsAction (http://127.0.0.1:3001/main.bundle.js:12837:17) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12515:5) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execComponentViewsAction (http://127.0.0.1:3001/main.bundle.js:12811:13) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12520:5) at callWithDebugContext (http://127.0.0.1:3001/main.bundle.js:13734:42) at Object.debugCheckAndUpdateView [as checkAndUpdateView] (http://127.0.0.1:3001/main.bundle.js:13274:12) at ViewRef_.detectChanges (http://127.0.0.1:3001/main.bundle.js:10445:18) at http://127.0.0.1:3001/main.bundle.js:5083:63 at Array.forEach (<anonymous>) at ApplicationRef_.tick (http://127.0.0.1:3001/main.bundle.js:5083:25) at http://127.0.0.1:3001/main.bundle.js:4961:106 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke (http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run (http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at NgZone.run (http://127.0.0.1:3001/main.bundle.js:4099:69) at Object.next (http://127.0.0.1:3001/main.bundle.js:4961:82) at SafeSubscriber.schedulerFn [as _next] (http://127.0.0.1:3001/main.bundle.js:3913:52) at SafeSubscriber.__tryOrUnsub (http://127.0.0.1:3001/main.bundle.js:15782:16) at SafeSubscriber.next (http://127.0.0.1:3001/main.bundle.js:15729:22) at Subscriber._next (http://127.0.0.1:3001/main.bundle.js:15669:26) at Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at EventEmitter.Subject.next (http://127.0.0.1:3001/main.bundle.js:37566:25) at EventEmitter.emit (http://127.0.0.1:3001/main.bundle.js:3899:76) at checkStable (http://127.0.0.1:3001/main.bundle.js:4133:35) at Object.onHasTask (http://127.0.0.1:3001/main.bundle.js:4181:21) at ZoneDelegate.hasTask (http://127.0.0.1:3001/polyfills.bundle.js:29279:37) at ZoneDelegate._updateTaskCount (http://127.0.0.1:3001/polyfills.bundle.js:29299:22) at Zone._updateTaskCount (http://127.0.0.1:3001/polyfills.bundle.js:29123:34) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29043:30) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous> at ____________________Elapsed_65_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject (http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise (http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29652:17 at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous> at ____________________Elapsed_1_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject (http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise (http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29652:17 at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous> at ____________________Elapsed_0_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject (http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise (http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29530:17 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke (http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run (http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous> at ____________________Elapsed_1_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject (http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise (http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29530:17 at http://127.0.0.1:3001/polyfills.bundle.js:29546:33 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke (http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run (http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous> at ____________________Elapsed_0_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject (http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise (http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29530:17 at http://127.0.0.1:3001/main.bundle.js:20081:21 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke (http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run (http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous> at ____________________Elapsed_5_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject (http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at ZoneAwarePromise.then (http://127.0.0.1:3001/polyfills.bundle.js:29739:17) at http://127.0.0.1:3001/main.bundle.js:20077:18 at new ZoneAwarePromise (http://127.0.0.1:3001/polyfills.bundle.js:29668:29) at Router.runNavigate (http://127.0.0.1:3001/main.bundle.js:19980:16) at http://127.0.0.1:3001/main.bundle.js:19947:51 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke (http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run (http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous> at ____________________Elapsed_153_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject (http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at ZoneAwarePromise.then (http://127.0.0.1:3001/polyfills.bundle.js:29739:17) at Router.executeScheduledNavigation (http://127.0.0.1:3001/main.bundle.js:19947:18) at MergeMapSubscriber.project (http://127.0.0.1:3001/main.bundle.js:19890:23) at MergeMapSubscriber._tryNext (http://127.0.0.1:3001/main.bundle.js:64731:27) at MergeMapSubscriber._next (http://127.0.0.1:3001/main.bundle.js:64721:18) at MergeMapSubscriber.Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at BehaviorSubject.Subject.next (http://127.0.0.1:3001/main.bundle.js:37566:25) at BehaviorSubject.next (http://127.0.0.1:3001/main.bundle.js:53876:31) at Router.scheduleNavigation (http://127.0.0.1:3001/main.bundle.js:19930:26) at Router.navigateByUrl (http://127.0.0.1:3001/main.bundle.js:19810:21) at Router.initialNavigation (http://127.0.0.1:3001/main.bundle.js:19626:18) at RouterInitializer.bootstrapListener (http://127.0.0.1:3001/main.bundle.js:22046:20) at http://127.0.0.1:3001/main.bundle.js:5063:56 at Array.forEach (<anonymous>) at ApplicationRef_._loadComponent (http://127.0.0.1:3001/main.bundle.js:5063:19) at ApplicationRef_.bootstrap (http://127.0.0.1:3001/main.bundle.js:5047:14) at http://127.0.0.1:3001/main.bundle.js:4823:81 at Array.forEach (<anonymous>) at PlatformRef_._moduleDoBootstrap (http://127.0.0.1:3001/main.bundle.js:4823:44) at http://127.0.0.1:3001/main.bundle.js:4785:27 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke (http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run (http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous> at ____________________Elapsed_103_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject (http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise (http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at ApplicationInitStatus.resolve (http://127.0.0.1:3001/polyfills.bundle.js:29530:17) at complete (http://127.0.0.1:3001/main.bundle.js:3081:19) at http://127.0.0.1:3001/main.bundle.js:3091:59 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke (http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run (http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous> at ____________________Elapsed_0_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700__________________________________ (http://localhost) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject (http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise (http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29530:17 at http://127.0.0.1:3001/polyfills.bundle.js:29723:25 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke (http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run (http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at <anonymous>

fpmk avatar Jul 20 '17 12:07 fpmk

For me it's solved by creating the chart on changes if it's not there.

Something like (sorry on vacation):

If (!this.chart) create chart else update chart.

On Thu, 20 Jul 2017, 15:33 Anton Lee, [email protected] wrote:

Hi there, I have similar error, may be not. I'm getting data from REST, about 3k points like this [ {x, y}, ... ]

create amchart instance

public ngAfterViewInit(): void { this.chart = this.AmCharts.makeChart('chartReturnDrawdown', this.options); }

then on data load (in ngOnInit section) I'm doing this:

public ngOnInit() { this.service.getData().subscribe( points => { this.AmCharts.updateChart(this.chart, () => { this.chart.dataSets[ 0 ].dataProvider = points; }); } ); }

and then I'm getting this error: (but it happens not always)

core.es5.js:1020 ERROR TypeError: d.clear is not a function at b.clear ( http://127.0.0.1:3001/main.bundle.js:129811:187) at b.validateNow ( http://127.0.0.1:3001/main.bundle.js:129808:427) at http://127.0.0.1:3001/main.bundle.js:38834:19 at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Zone.run ( http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at NgZone.runOutsideAngular (http://127.0.0.1:3001/main.bundle.js:4122:83) at AmChartsService.updateChart ( http://127.0.0.1:3001/main.bundle.js:38832:19) at SafeSubscriber.next ( http://127.0.0.1:3001/main.bundle.js:127411:28) at SafeSubscriber.tryOrUnsub (http://127.0.0.1:3001/main.bundle.js:15782:16) at SafeSubscriber.next (http://127.0.0.1:3001/main.bundle.js:15729:22) at Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15669:26) at Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at CatchSubscriber.Subscriber.next ( http://127.0.0.1:3001/main.bundle.js:15669:26) at CatchSubscriber.Subscriber.next ( http://127.0.0.1:3001/main.bundle.js:15633:18) at MapSubscriber.next ( http://127.0.0.1:3001/main.bundle.js:54607:26) at MapSubscriber.Subscriber.next ( http://127.0.0.1:3001/main.bundle.js:15633:18) at MapSubscriber.next ( http://127.0.0.1:3001/main.bundle.js:54607:26) at MapSubscriber.Subscriber.next ( http://127.0.0.1:3001/main.bundle.js:15633:18) at FilterSubscriber.next ( http://127.0.0.1:3001/main.bundle.js:57963:30) at FilterSubscriber.Subscriber.next ( http://127.0.0.1:3001/main.bundle.js:15633:18) at MergeMapSubscriber.notifyNext ( http://127.0.0.1:3001/main.bundle.js:64754:30) at InnerSubscriber.next ( http://127.0.0.1:3001/main.bundle.js:144075:21) at InnerSubscriber.Subscriber.next ( http://127.0.0.1:3001/main.bundle.js:15633:18) at XMLHttpRequest.onLoad ( http://127.0.0.1:3001/main.bundle.js:47677:30) at ZoneDelegate.invokeTask (http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at XMLHttpRequest.ZoneTask.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29321:38) at Elapsed_1272_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700_____ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleEventTask (http://127.0.0.1:3001/polyfills.bundle.js:29096:25) at zoneAwareAddListener ( http://127.0.0.1:3001/polyfills.bundle.js:30113:14) at XMLHttpRequest.proto.(anonymous function) [as addEventListener] ( http://127.0.0.1:3001/polyfills.bundle.js:30260:20) at Observable.subscribe (http://127.0.0.1:3001/main.bundle.js:47761:17) at Observable.trySubscribe (http://127.0.0.1:3001/main.bundle.js:15133:25) at Observable.subscribe (http://127.0.0.1:3001/main.bundle.js:15121:27) at Object.subscribeToResult (http://127.0.0.1:3001/main.bundle.js:32685:27) at MergeMapSubscriber.innerSub ( http://127.0.0.1:3001/main.bundle.js:64741:38) at MergeMapSubscriber.tryNext (http://127.0.0.1:3001/main.bundle.js:64738:14) at MergeMapSubscriber.next (http://127.0.0.1:3001/main.bundle.js:64721:18) at MergeMapSubscriber.Subscriber.next ( http://127.0.0.1:3001/main.bundle.js:15633:18) at ScalarObservable.subscribe (http://127.0.0.1:3001/main.bundle.js:64162:24) at ScalarObservable.Observable.trySubscribe ( http://127.0.0.1:3001/main.bundle.js:15133:25) at ScalarObservable.Observable.subscribe ( http://127.0.0.1:3001/main.bundle.js:15121:27) at MergeMapOperator.call ( http://127.0.0.1:3001/main.bundle.js:64696:23) at Observable.subscribe ( http://127.0.0.1:3001/main.bundle.js:15118:22) at FilterOperator.call ( http://127.0.0.1:3001/main.bundle.js:57933:23) at Observable.subscribe ( http://127.0.0.1:3001/main.bundle.js:15118:22) at MapOperator.call ( http://127.0.0.1:3001/main.bundle.js:54578:23) at Observable.subscribe ( http://127.0.0.1:3001/main.bundle.js:15118:22) at MapOperator.call ( http://127.0.0.1:3001/main.bundle.js:54578:23) at Observable.subscribe ( http://127.0.0.1:3001/main.bundle.js:15118:22) at CatchOperator.call ( http://127.0.0.1:3001/main.bundle.js:81100:23) at Observable.subscribe ( http://127.0.0.1:3001/main.bundle.js:15118:22) at ReturnChartComponent.loadChartData ( http://127.0.0.1:3001/main.bundle.js:127409:14) at ReturnChartComponent.ngOnChanges ( http://127.0.0.1:3001/main.bundle.js:127458:22) at checkAndUpdateDirectiveInline ( http://127.0.0.1:3001/main.bundle.js:11109:19) at checkAndUpdateNodeInline (http://127.0.0.1:3001/main.bundle.js:12608:17) at checkAndUpdateNode (http://127.0.0.1:3001/main.bundle.js:12547:16) at debugCheckAndUpdateNode (http://127.0.0.1:3001/main.bundle.js:13408:59) at debugCheckDirectivesFn (http://127.0.0.1:3001/main.bundle.js:13349:13) at Object.eval [as updateDirectives] (ng:///AppModule/TraderChartComponent.ngfactory.js:22:9) at Object.debugUpdateDirectives [as updateDirectives] ( http://127.0.0.1:3001/main.bundle.js:13334:21) at checkAndUpdateView ( http://127.0.0.1:3001/main.bundle.js:12514:14) at callViewAction ( http://127.0.0.1:3001/main.bundle.js:12879:21) at execEmbeddedViewsAction (http://127.0.0.1:3001/main.bundle.js:12837:17) at checkAndUpdateView ( http://127.0.0.1:3001/main.bundle.js:12515:5) at callViewAction ( http://127.0.0.1:3001/main.bundle.js:12879:21) at execComponentViewsAction (http://127.0.0.1:3001/main.bundle.js:12811:13) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12520:5) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execEmbeddedViewsAction (http://127.0.0.1:3001/main.bundle.js:12837:17) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12515:5) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execComponentViewsAction (http://127.0.0.1:3001/main.bundle.js:12811:13) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12520:5) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execEmbeddedViewsAction (http://127.0.0.1:3001/main.bundle.js:12837:17) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12515:5) at callViewAction (http://127.0.0.1:3001/main.bundle.js:12879:21) at execComponentViewsAction (http://127.0.0.1:3001/main.bundle.js:12811:13) at checkAndUpdateView (http://127.0.0.1:3001/main.bundle.js:12520:5) at callWithDebugContext (http://127.0.0.1:3001/main.bundle.js:13734:42) at Object.debugCheckAndUpdateView [as checkAndUpdateView] ( http://127.0.0.1:3001/main.bundle.js:13274:12) at ViewRef.detectChanges ( http://127.0.0.1:3001/main.bundle.js:10445:18) at http://127.0.0.1:3001/main.bundle.js:5083:63 at Array.forEach () at ApplicationRef.tick ( http://127.0.0.1:3001/main.bundle.js:5083:25) at http://127.0.0.1:3001/main.bundle.js:4961:106 at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke ( http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run ( http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at NgZone.run ( http://127.0.0.1:3001/main.bundle.js:4099:69) at Object.next ( http://127.0.0.1:3001/main.bundle.js:4961:82) at SafeSubscriber.schedulerFn [as next] ( http://127.0.0.1:3001/main.bundle.js:3913:52) at SafeSubscriber.tryOrUnsub (http://127.0.0.1:3001/main.bundle.js:15782:16) at SafeSubscriber.next (http://127.0.0.1:3001/main.bundle.js:15729:22) at Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15669:26) at Subscriber.next (http://127.0.0.1:3001/main.bundle.js:15633:18) at EventEmitter.Subject.next (http://127.0.0.1:3001/main.bundle.js:37566:25) at EventEmitter.emit (http://127.0.0.1:3001/main.bundle.js:3899:76) at checkStable (http://127.0.0.1:3001/main.bundle.js:4133:35) at Object.onHasTask (http://127.0.0.1:3001/main.bundle.js:4181:21) at ZoneDelegate.hasTask (http://127.0.0.1:3001/polyfills.bundle.js:29279:37) at ZoneDelegate.updateTaskCount ( http://127.0.0.1:3001/polyfills.bundle.js:29299:22) at Zone.updateTaskCount (http://127.0.0.1:3001/polyfills.bundle.js:29123:34) at Zone.runTask (http://127.0.0.1:3001/polyfills.bundle.js:29043:30) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at at Elapsed_65_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700___ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject ( http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise ( http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29652:17 at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at at Elapsed_1_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700______________ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject ( http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise ( http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29652:17 at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at at Elapsed_0_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700______________ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject ( http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise ( http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29530:17 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke ( http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run ( http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at at Elapsed_1_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700______________ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject ( http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise ( http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29530:17 at http://127.0.0.1:3001/polyfills.bundle.js:29546:33 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke ( http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run ( http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at at Elapsed_0_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700______________ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject ( http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise ( http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29530:17 at http://127.0.0.1:3001/main.bundle.js:20081:21 at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke ( http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run ( http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at at Elapsed_5_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700______________ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject ( http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at ZoneAwarePromise.then (http://127.0.0.1:3001/polyfills.bundle.js:29739:17) at http://127.0.0.1:3001/main.bundle.js:20077:18 at new ZoneAwarePromise ( http://127.0.0.1:3001/polyfills.bundle.js:29668:29) at Router.runNavigate (http://127.0.0.1:3001/main.bundle.js:19980:16) at http://127.0.0.1:3001/main.bundle.js:19947:51 at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke ( http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run ( http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at at Elapsed_153_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700______________ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject ( http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at ZoneAwarePromise.then (http://127.0.0.1:3001/polyfills.bundle.js:29739:17) at Router.executeScheduledNavigation ( http://127.0.0.1:3001/main.bundle.js:19947:18) at MergeMapSubscriber.project (http://127.0.0.1:3001/main.bundle.js:19890:23) at MergeMapSubscriber.tryNext ( http://127.0.0.1:3001/main.bundle.js:64731:27) at MergeMapSubscriber.next (http://127.0.0.1:3001/main.bundle.js:64721:18) at MergeMapSubscriber.Subscriber.next ( http://127.0.0.1:3001/main.bundle.js:15633:18) at BehaviorSubject.Subject.next ( http://127.0.0.1:3001/main.bundle.js:37566:25) at BehaviorSubject.next ( http://127.0.0.1:3001/main.bundle.js:53876:31) at Router.scheduleNavigation (http://127.0.0.1:3001/main.bundle.js:19930:26) at Router.navigateByUrl (http://127.0.0.1:3001/main.bundle.js:19810:21) at Router.initialNavigation (http://127.0.0.1:3001/main.bundle.js:19626:18) at RouterInitializer.bootstrapListener ( http://127.0.0.1:3001/main.bundle.js:22046:20) at http://127.0.0.1:3001/main.bundle.js:5063:56 at Array.forEach () at ApplicationRef.loadComponent ( http://127.0.0.1:3001/main.bundle.js:5063:19) at ApplicationRef.bootstrap (http://127.0.0.1:3001/main.bundle.js:5047:14) at http://127.0.0.1:3001/main.bundle.js:4823:81 at Array.forEach () at PlatformRef.moduleDoBootstrap ( http://127.0.0.1:3001/main.bundle.js:4823:44) at http://127.0.0.1:3001/main.bundle.js:4785:27 at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke ( http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run ( http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at at Elapsed_103_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700_____________ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject ( http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise ( http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at ApplicationInitStatus.resolve ( http://127.0.0.1:3001/polyfills.bundle.js:29530:17) at complete ( http://127.0.0.1:3001/main.bundle.js:3081:19) at http://127.0.0.1:3001/main.bundle.js:3091:59 at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke ( http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run ( http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at at Elapsed_0_ms__At__Thu_Jul_20_2017_19_27_08_GMT_0700______________ (http://localhost) at Object.onScheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:28763:22) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Object.onScheduleTask (http://127.0.0.1:3001/polyfills.bundle.js:29135:29) at ZoneDelegate.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29239:51) at Zone.scheduleTask ( http://127.0.0.1:3001/polyfills.bundle.js:29070:43) at Zone.scheduleMicroTask (http://127.0.0.1:3001/polyfills.bundle.js:29090:25) at scheduleResolveOrReject ( http://127.0.0.1:3001/polyfills.bundle.js:29650:14) at resolvePromise ( http://127.0.0.1:3001/polyfills.bundle.js:29599:21) at http://127.0.0.1:3001/polyfills.bundle.js:29530:17 at http://127.0.0.1:3001/polyfills.bundle.js:29723:25 at ZoneDelegate.invoke (http://127.0.0.1:3001/polyfills.bundle.js:29226:26) at Object.onInvoke ( http://127.0.0.1:3001/main.bundle.js:4168:33) at ZoneDelegate.invoke ( http://127.0.0.1:3001/polyfills.bundle.js:29225:32) at Zone.run ( http://127.0.0.1:3001/polyfills.bundle.js:28976:43) at http://127.0.0.1:3001/polyfills.bundle.js:29652:57 at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29259:31) at Object.onInvokeTask (http://127.0.0.1:3001/main.bundle.js:4159:33) at ZoneDelegate.invokeTask ( http://127.0.0.1:3001/polyfills.bundle.js:29258:36) at Zone.runTask ( http://127.0.0.1:3001/polyfills.bundle.js:29026:47) at drainMicroTaskQueue (http://127.0.0.1:3001/polyfills.bundle.js:29419:35) at

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/amcharts/amcharts3-angular2/issues/46#issuecomment-316688764, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNb83w4WxED7ID_lX0_il8LGONXBDIuks5sP0j0gaJpZM4OCRvV .

--

dimitrioskanellopoulos.com

jimmykane avatar Jul 20 '17 22:07 jimmykane

Any thoughts on this, I have the same issue

kevzlou7979 avatar Jan 27 '18 21:01 kevzlou7979

Any thoughts on this issues, I am having same issue with Pie chart?!

as-ghub avatar Jan 15 '19 23:01 as-ghub