Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataplotly pie chart font size #333

Open
Cilaee opened this issue Jul 3, 2023 · 6 comments
Open

Dataplotly pie chart font size #333

Cilaee opened this issue Jul 3, 2023 · 6 comments
Labels

Comments

@Cilaee
Copy link

Cilaee commented Jul 3, 2023

The pie chart generated by Dataplotly in QGIS have font errors.
In the project part of QGIS, everything works fine: in the parameters of the Dataplotly window, the "Title and labels customization" option alllow to modify the font (font, style, size, colour, etc.). And the settings are executed correctly on the graph that is then generated.

However, in the QGIS layout section, the font settings (axis titles and legend) don't work: the font is very small and it's impossible to increase the size.
This is problematic, because the text is illegible, and in the case of atlases in QGIS, the option of exporting the graphic previously created in the project section and then importing it into the layout section doesn't work.

I'm working with QGIS 3.28

@Cilaee Cilaee added the bug label Jul 3, 2023
@ghtmtt
Copy link
Owner

ghtmtt commented Jul 4, 2023

could you please paste a screenshot?

@Cilaee
Copy link
Author

Cilaee commented Jul 4, 2023

Here is an example of a map output

example

According to the comments on the internet it is a general problem for everyone

@pedrogeo
Copy link

pedrogeo commented Jul 4, 2023

Same problem in reports in QGIS.

@ghtmtt
Copy link
Owner

ghtmtt commented Jul 5, 2023

reports and layout have basically the same engine, so if there is a problem in the layouts the same problem, very likely, will be also in the reports.

The main problem of the font size is that the plot is created within an html frame and the font size (and all the other related properties) are different from the QGIS title for example. So it is not so easy to fix this issue.

@Gustry
Copy link
Collaborator

Gustry commented Feb 1, 2024

Does anyone could find a workaround for increasing the font in a pie chart ?

Is-it not possible to send some extra CSS within the HTML frame, or some some Plotly JSON (doc) ?

@ghtmtt
Copy link
Owner

ghtmtt commented Feb 1, 2024

not sure if a better output can be obtained with QgsFontButton (see also #278)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants