Issue with chart ThemeService

1 Answer 251 Views
Charts
Pradeep
Top achievements
Rank 1
Pradeep asked on 27 Sep 2022, 05:29 AM | edited on 27 Sep 2022, 05:35 AM

Hello,

Am using kendo-chart inside kendo-dialog. I upgraded chart from v5.2.1 to v7.1.1, after that am getting the below error

I had ThemeService added in Provider list of the component

When i remove the ThemeService am getting the below error in the console when i try to open the dialog.

Is there any way to fix this issue or work around.

Note: Deleted node_modules and tried it didn't work

 

Scott
Top achievements
Rank 1
commented on 21 Dec 2022, 05:45 AM

Any luck here? I have the same issue. When the chart is displayed within a ng-bootstrap modal, and the content is specified as a component, I get the same error, since upgrading the Angular 15 and the latest Kendo and ng-bootstrap packages.

https://ng-bootstrap.github.io/#/components/modal/examples#component


Anthony
Top achievements
Rank 1
commented on 06 Apr 2024, 03:44 AM

I'm receiving the exact same error here when using a lazy loaded module from a route. When I move the ChartsModule registration to the eagerly loaded it works.

    "@progress/kendo-angular-charts": "^15.4.0",

 

Angular 17.3

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 22 Dec 2022, 09:17 AM

Hi Pradeep,

In general, the ThemeService isn't required to have the Chart component inside the Dialog. As demonstrated in the following example that uses Angular v15 and the latest version of the component and themes the Chart displayed correctly inside the Dialog:

https://stackblitz.com/edit/angular-ivy-8thbln

To be able to assist further on that case I will need some more details about the configuration so that we can reproduce the issue on our side and be able to suggest more valuable solutions.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Anthony
Top achievements
Rank 1
commented on 06 Apr 2024, 03:43 AM

I'm receiving the exact same error here when using a lazy loaded module from a route. When I move the ChartsModule registration to the eagerly loaded it works.

    "@progress/kendo-angular-charts": "^15.4.0",

 

Angular 17.3

Martin Bechev
Telerik team
commented on 10 Apr 2024, 10:54 AM

Hi Anthony,

The information provided back in 2022, is still valid - the developer isn't required to provide the ThemeService in order to display a Kendo UI for Angular Chart. 

To be able to provide further assistance on the case we would need some more details about the implementation. Thank you in advance.

Tags
Charts
Asked by
Pradeep
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or