lizmap-plugin icon indicating copy to clipboard operation
lizmap-plugin copied to clipboard

dataviz - type pie and type scatter - plot preview

Open josemvm opened this issue 2 years ago • 5 comments

Description

for the pie type dataviz, the plot preview doens't take in account the layout code: {"colorway": ["#ffffff", "#57a163", "#e2d251", "#086fa1", "#bc4a3c", "#856e41", "#000000", "#ffffff", "#8a9a97"]}

lizmap image: imagem

preview image: imagem

Context

  • QGIS version: 3.22.16
  • Lizmap version: 3.6.2 pre
  • OS: Ubuntu 20

josemvm avatar Feb 27 '23 11:02 josemvm

I'm not sure if it's a bug on Lizmap Web Client side or here. The plugin is taking the result from the LWC server only.

Does the layout works for other charts ?

Gustry avatar Feb 28 '23 11:02 Gustry

Hiya! This issue has gone quiet. 👻 We get a few issues, so we currently close issues after 60 days of inactivity. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Thanks for being a part of the Lizmap community! 🦎

3liz-bot avatar May 01 '23 04:05 3liz-bot

for the scatter type dataviz, the plot preview doens't show de line

lizmap image: imagem

preview image: imagem

thanks

josemvm avatar May 17 '23 11:05 josemvm

Indeed, the code does not take into account the additional JSON layout given by the user

We could add in the code just before this line

// Apply the JSON user layout
Plotly.relayout("lizmap-plot", {plot_user_layout});

mdouchin avatar May 30 '23 15:05 mdouchin

@mdouchin Committed but commented 😁

Gustry avatar Oct 09 '23 15:10 Gustry