stable

Clone or download

Read-only

Improve charts performances

This is part of request #11031 Migrate burndown in D3 JS This patch aims to improve the performances when two charts are rendered on the same page. Performance gain: -20 ms for each chart (it takes now ~110 ms to draw a chart). What have been done: - ModuleConcatenationPlugin is now added during production builds for the burndown chart. - Dates are formatted as needed only once, it prevents us to intanciate a new moment each time we use a date. - As a result, some dependencies to moment.js have been removed. Change-Id: Ib65fcfd346f8b10bf638418115763d4eb956a59b

Modified Files

Name
M plugins/agiledashboard/www/js/burnup-chart/src/burnup-chart-drawer.js +2 −9 Go to diff View file
M plugins/agiledashboard/www/js/burnup-chart/src/chart-data-service.js +5 −1 Go to diff View file
M plugins/tracker/www/scripts/burndown-chart/src/burndown-chart-drawer.js +1 −9 Go to diff View file
M plugins/tracker/www/scripts/burndown-chart/src/chart-data-service.js +5 −1 Go to diff View file
M plugins/tracker/www/scripts/webpack.config.js +8 −1 Go to diff View file
M src/www/scripts/charts-builders/chart-column-factory.js +5 −11 Go to diff View file
M src/www/scripts/charts-builders/chart-dates-service.js +12 −1 Go to diff View file
M src/www/scripts/charts-builders/chart-lines-service.js +3 −4 Go to diff View file