Utilizzo basico di DataPlotly
L’interfaccia di DataPlotly è stata pensata in modo da essere semplice, ma anche completa con molte opzioni e personalizzazioni disponibili.
Creating a plot is just easy as it sounds: choose the plot type, x and y columns, colors, labels, etc and press the Create Plot button. The plot is immediately shown in the plot canvas.
If you want to change some setting, e.g. the marker color or size, the x column, go ahead and the hit the Update Plot button: the plot is then updated in the plot canvas.

Aggiungi un grafico
Il flusso di lavoro di DataPlotly è molto lineare:
scegli il tipo di grafico (1)
imposta il layer e i campi che vuoi utilizzare (2)
show the plot with the
Create Plotbutton (3). The plot canvas is automatically visible.

You can change some plot settings and click on the Update button to update the plot with the changes.
If you want to start again, just click the Clean Plot Canvas button and the plot canvas will be empty.
Multi grafici
DataPlotly permette la creazione di molti grafici diversi. Questi possono essere sovrapposti (grafico singolo) oppure ogni grafico può essere caricato in righe e colonne separate (multi grafico).
Sovrapposizione grafici
Puoi aggiungere quanti grafici vuoi e caricarli nella stessa vista. Le tipologie di grafici possono essere diverse cosi come il layer e i campi.
[!NOTE] results can be very strange depending on the plot type and on the fields you choose. Be careful!
To add other plot just repeat the steps of add_plot by choosing different plot types and/or just different layer fields, etc..
Nella seguente figura, stessa tipologia di grafico e differenti campi dello stesso vettore:

La seguente figura mostra 2 tipologie di grafici diversi sovrapposti nella stessa vista:

Multi grafici
Puoi anche scegliere di dividere i grafici in viste separate. Questo è particolarmente utile quando le scale di valori sono molto diverse o quando la sovrapposizione di dati o grafici diversi risulta troppo caotica.
You just have to choose the plots and the fields as described in the section add_plot but you have to specify the SubPlots parameter from the combobox and choose if the plots have to be drawn in rows (default parameter) or in columns.
La seguente figura mostra grafici in righe e colonne:

|

Salva grafico
Saving a plot, technically the plot canvas, is very simple. You can choose to save the plot as a png image or as html file.
[!NOTE] Saving the image as
htmlfile will keep the interactivity of the plot. The html file relies on the local DataPlotly installation, and cannot in general be used on other systems.
Basta cliccare sul pulsante corretto e scegliere il percorso dove vuoi salvare l’immagine, sia statica che interattiva.

Codice del grafico
In addition to saving the plot as image or html file (see save) you can also copy the raw html code of the plot and embed it somewhere else.
Un’ottima scelta è copiare/incollare il codice in una cornice html del compositore di stampe di QGIS.
In order to copy the plot code, after the plot creation, just go in the Raw Plot tab: here you can see a long string. Right Click on the tab and choose Select All, then Right Click again and choose Copy (of course you can use keyboard shortcuts Ctrl + A for select all and Ctrl + C for copy):

Ora hai il codice copiato in memoria, devi solo scegliere dove incollarlo.
In the following example, the html code is pasted in the html frame of the print composer:
open the print composer and add an
html frame(1)paste the code in the
Sourcespace (2)refresh the
htmlcode (3)il risultato viene mostrato nella cornice (4)

Consigli e trucchi
Usare le espressioni
DataPlotly supposta tutti le tipologie di campi (interi, decimali, testo, ecc…) ed elabora i dati in modo che possano essere visualizzati coerentemente.
Thanks to the QGIS API and custom widget, it is possible to add also Expressions instead of pure layer fields (e.g. field + 10, field1 * field2, etc).
You can use the Expression editor to add complex expressions (e.g. (field1 + 10) * (field2 * 10)) or you can type the expression directly in the combo box. Expressions are evaluated on the fly, so if the string is red, then the expression is not valid.

Usa solo le geometrie selezionate
Un’altra opzione molto utile è quella di usare solamente le geometrie selezionate del vettore.
Just check the Use only selected features check box and only the attributes of the selected features will be taken.