Lizmap - scatterplot

Dear All,

I need to produce a scatterplot in lizmap using Dataviz.
I assigned as X value a decimal field and in Trace I selected a second decimal field.

The ouput graph shows the line instead of points. How can I produce points instead of lines?

Thanks
Pierluigi

@pierluigiderosa here is the how to Dataviz - Afficher quelques graphiques related to Trouble on DataViz · Issue #2923 · 3liz/lizmap-web-client · GitHub and it works for me

Thanks

I just added a js file with this code:

lizMap.events.on({
    'datavizplotloaded': (evt) => {
        if( evt.id === 'dataviz_plot_1'){
            Plotly.restyle( evt.id, {
                mode: "markers"
            });
        }
    }
});

And It worked.
Now If I would change some styles like colors marker or dimention even through the js file?

2 Likes

yes @pierluigiderosa you can totally customize the chart this way :wink:

1 Like