This is a migrated thread and some comments may be shown as answers.

reduce the size of application when using kendo-chart

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hadas
Top achievements
Rank 1
Hadas asked on 29 Nov 2018, 09:14 AM

Hi,

We are using kendo-chart type= donut in our apllication.

We also use WebPack, It seems that the chart module slow's the application build allot.

I tried importing only ChartModule and not the entire one ( ChartsModule)

 

Any ideas how to fix the issue?

Thank you

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 03 Dec 2018, 08:34 AM
Hi Hadas,

The Chart component comprises of many sub-component, that slow down the build. In our benchmarks, it adds 5 seconds on average to development builds (ng serve) and 30 seconds to production builds (ng build --prod). We're researching solutions to reduce this impact, but for the moment we have no specific ideas to act on. Future improvements in the Angular framework, such as the Ivy compiler may also improve the performance for in general.

One possible improvement is to include only the styles for the components in use, as described in the Customizing Themes. This is applicable to other components as well.

src/styles.scss
/* You can add global styles to this file, and also import other style files */

@import "~@progress/kendo-theme-default/scss/dataviz";


Also, remove the reference to the pre-built themes (kendo-themes/dist/all.css from angular.json), if present.

Best Regards,
T. Tsonev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Hadas
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or