[Qgis-user] DataPlotly pie charts are really small in a layout

Matteo Ghetta matteo.ghetta at gmail.com
Tue Apr 2 23:56:22 PDT 2024


Hi Paul,

the plot container in the print layout is slightly different from the 
one of the main QGIS UI, you can also experience some differences 
between the font size.

Hopefully in the future with QtWebEngine the situation will change ;)

What you can try, even if not the best solution, it to create the plot 
in the main DataPlotly UI, go to the HTML tab and copy/paste the code 
into a HTML frame in the print layout.

Hope this helps

Cheers

Matteo


On 3/28/24 14:30, Paul Wittle via QGIS-User wrote:
> Hi,
> 
> I’ve been searching around and I can’t seem to find any documentation on 
> this. I’m trying to add a pie chart to a layout and it works fine until 
> the size of the pie chart shrinks below a certain size.
> 
> For small pie charts there seems to be a really big margin applied to 
> the layout option and so the pie is tiny and the legend is being cut off 
> but there is plenty of room.
> 
> Is there a way to update a DataPlotly configuration XML that will force 
> the physical pie chart to be a fixed size or is that function not 
> available within layouts?
> 
> Thanks,
> 
> Paul
> 
> This e-mail and any files transmitted with it are intended solely for 
> the use of the individual or entity to whom they are addressed. It may 
> contain unclassified but sensitive or protectively marked material and 
> should be handled accordingly. Unless you are the named addressee (or 
> authorised to receive it for the addressee) you may not copy or use it, 
> or disclose it to anyone else. If you have received this transmission in 
> error please notify the sender immediately. All traffic may be subject 
> to recording and/or monitoring in accordance with relevant legislation. 
> Any views expressed in this message are those of the individual sender, 
> except where the sender specifies and with authority, states them to be 
> the views of Dorset Council. Dorset Council does not accept service of 
> documents by fax or other electronic means. Virus checking: Whilst all 
> reasonable steps have been taken to ensure that this electronic 
> communication and its attachments whether encoded, encrypted or 
> otherwise supplied are free from computer viruses, Dorset Council 
> accepts no liability in respect of any loss, cost, damage or expense 
> suffered as a result of accessing this message or any of its 
> attachments. For information on how Dorset Council processes your 
> information, please see www.dorsetcouncil.gov.uk/data-protection
> 
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


More information about the QGIS-User mailing list