question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'schedule' of undefined

See original GitHub issue

template code

<apx-chart #chart
                           [series]="[{name: 'test', data: [1, 2, 3]}]"
                           [xaxis]="{ categories: ['Jan', 'Feb', 'Mar'] }"
                           [chart]="chartx"
                           [grid]="gridx"
                           [title]="{ text: 'Title' }"
                           [stroke]="{curve: 'straight'}"
                           [dataLabels]="{enabled: false}"
                           [autoUpdateSeries]="false"></apx-chart>

js code

@ViewChild('chart') chart: ChartComponent;

  chartx = {
    height: 350,
    type: 'line',
    zoom: {
      enabled: false
    },
    shadow: {
      enabled: true,
      color: '#000',
      top: 18,
      left: 7,
      blur: 10,
      opacity: 1
    }
  };

  gridx = {
    row: {
      colors: ['#f3f3f3', 'transparent'],
      opacity: 0.5
    }
  };

ERROR TypeError: Cannot read property ‘schedule’ of undefined at ChartComponent.ngOnChanges (ng-apexcharts.js:46)

Hi, I just tries to use Apex, and I got this problem, anyone knows why? how to fix? Thanks.Regards.

maybe relevant? https://github.com/apexcharts/ng-apexcharts/issues/5 @kover

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kovercommented, Mar 27, 2019

@esdegan50000 yes, this may be a reason, I’ll add a fix soon

0reactions
ajaypatelajcommented, Mar 4, 2021

Any solution on this yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - Cannot read property 'schedule' of undefined
The desired output is the BsDatePicker and for some reason is giving me the error: Cannot read property 'schedule' of undefined.
Read more >
Management Bug: Undefined Project Schedule
This week's “Undefined Project Schedule” is a common problem in project management. By definition, it is the lack of a mechanism to communicate...
Read more >
Cannot read property 'schedule' of undefined · Issue #53
In my case I accidentally assigned BackgroundTask.define(...) to a variable and attempted to invoke task.schedule() . Since there can only be ...
Read more >
Getting Schedule control undefined error on custom event
I am trying to implement a scheduler calendar that gets the details of an appointment on double click. So I have this method...
Read more >
Schedule vs Undefined - What's the difference?
As a noun schedule. is a slip of paper; a short note. ; As a verb schedule. is to create a time-schedule. ;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found