Skip to content

Data order using x axis field instead of order of insertion (i.e. $id) #308

@MatparMcWolfie

Description

@MatparMcWolfie

This might be a feature request rather than a bug to fix.

I've just started messing with Dataplotly and am trying to create scatterplots on time series. Basically, I want to visualize the monthly variation in water table levels.

I understand the plugin orders data using order of insertion (I'm guessing it's using $id, since they correlate). The problem is my data isn't necesseraly inserted into the table in chronological order because of logistical reasons. Instead, the level and date of measurement are saved in different fields. I then plot the water level with dates on X axis.

Since the the data is showed in order of insertion in the scatter plot, an issue sometimes occurs when I add a line symbol to the plot:

image

The obvious solution here would be to hide the problem by removing the line and keep only points but I need the line in my reports.

Would it possible to order data in relation to the X values instead of $id. It would make much more sense in scatter plots anyway.

Thanks a lot.

P.S. I was browsing through the page juste to make sure this issue had not been posted yet and I came across this:
#305
In which you can find the following GIF, showing a sorting option:
187727159-1d49c7d2-1b76-4241-a772-2c8b65faa206

I am now questioning if I have the latest version of the plugin since I cannot find such an option on my instance:
image

Currently running QGIS 3.28.0, and Data Plotly 3.9.2.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions