Service Portal custom widget not reading the chart-create event in $scope.$on
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 10:09 AM
I have created a custom bar chart widget using angular and chartjs libraries based on the recommendation in the following post.
I am trying to get the chart-instance using the below so that I can use the chartjs OOB functions.
$scope.$on('chart-create', function (evt, chart) { console.log(chart); });
The chart-create event is not being called in my widget despite the $scope variable already defined in my widget controller. Not sure what I am missing. No error in the console but it does not get the chart instance too.
0 REPLIES 0