vislib performs width/height calculations redundantly #6555
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Vislib
Vislib chart implementation
Feature:Visualizations
Generic visualization features (in case no more specific feature label is available)
In addition to my find in #6492, I noticed that Kibana is extremely inefficient in fixing sizes of widths and heights.
One example is the XAxis.prototype.fitTitles function (https://github.com/elastic/kibana/blob/master/src/ui/public/vislib/lib/x_axis.js#L437). This is called for every single visualization. It then grabs all .vis-wrapper elements on the page (one for each visualization) and fixes up the height/width values for the axis's and charts. This means that for a dashboard with n visualizations, it will run it n*n times.
The text was updated successfully, but these errors were encountered: