@sebastian-berlin-wmse opened this Issue on November 30th 2021

Expected Behavior

Exported image should contain all information.

Current Behavior

Exported image is cropped and parts of the labels are missing.

Possible Solution

I did a bit of hacking on the CSS in the browser and increasing the width of the elements resulted in a full image (after some window resizing to get the canvases to catch up). It may be possible to clone the relevant elements and resizing them before making an image of them. At least that looks like how it's done to me.

A workaround is to resize the window before clicking "Export as image".

Steps to Reproduce (for Bugs)

  1. Set the window width to about 1,000 pixels
  2. Visit the dashboard
  3. In the box "Channel Types"
    3.a. Click "Change visualization", select "Pie chart"
    3.b. Click "Export as Image"

Context

Exporting images, such as the graphs, is a good, quick way to show statistics. You can't really do that if parts of the labels are missing.

Your Environment

  • Matomo Version: 4.6.0
  • PHP version: 7.2.24-0ubuntu0.18.04.10
  • Server Operating System: Ubuntu 18.04.5
  • Additionally installed plugins: CustomVariables, SecurityInfo
  • Browser: Firefox 94.0
  • Operating System: Ubuntu 18.04.6
@bx80 commented on November 30th 2021 Contributor

Hi @sebastian-berlin-wmse, thanks for reporting this issue. I can confirm that if any part of the chart canvas is being cropped before clicking export as image then the resulting exported image will also be cropped. As you note it's easy to workaround by maximizing the widget before export, but it would be much better to have this happen automatically as part of the export action.

Powered by GitHub Issue Mirror