Open audelorAd opened 2 years ago
Few more test today :
See below :
Problem seems situated inside buildHtmlPlot function of dataviz.js file In this function the id args is not the same between dataviz panel plots ( id value here start with "datavizplot") and parent popup plots (id value here is the parent layer id).
buildHtmlPlot function seems able to deals only with dataviz panel plots like we can see below:
function buildHtmlPlot(id, data, layout) {
if (!data) {
return;
}
var a = **parseInt(id.replace('dataviz_plot_', ''))**
Any idea on how to fix this ?
Note from @audelorAd on IRC :
<audelorad> This afternoon I tried to modify dataviz.js code through Chrome Developper console and the code below is working fine :
<audelorad> * Add "pid" in the line 303 => buildHtmlPlot(id, pid, conf.data, conf.layout);
<audelorad> * Use also "pid" in line 201 => var plot_config = dv.config.layers[pid];
<audelorad> * Delete line 200
I encountered the issue also on another instance and I have access to the data.
Apparently, this issue was only with "HTML plot" when it's filtered with a parent layer.
On one running LWC instance, I'm not sure to reproduce the issue (if the plot is still here in the config)
@audelorAd Do you still confirm the issue ? Can you share a URL (or private) ?
Yes I confirm issue still here on Lizmap 3.6.7 I will share you URL privately.
Yes I confirm issue still here on Lizmap 3.6.7
Ok, I got the issue too.
This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎
Are layers data used for the dataviz all accessible? (no filter by user/group etc.)
It can be linked to #4400
What is the bug?
I Have a Dataviz "HTML Template" type in ordered to display a table. I can't display this dataviz in the parents popup. In this popup the content should be filtered.
In the browser console I get the following message :
Uncaught TypeError: plot_config is undefined dataviz.js: 202:20
Steps to reproduce the issue
Versions
Versions :
Check Lizmap plugin
QGIS server version, only if the section above doesn't mention the QGIS Server version
3.22
Operating system
Windows 10
Browsers
Firefox
Browsers version
91.10
Relevant log output