Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort x value by y values #263

Open
REIMSMetropole opened this issue Jul 26, 2021 · 3 comments
Open

sort x value by y values #263

REIMSMetropole opened this issue Jul 26, 2021 · 3 comments

Comments

@REIMSMetropole
Copy link

Describe the solution you'd like

Hi.
With the plugin, I didn't find a way to sort x value by y value.
Lets assume we got those datas :

nom nb annee n-1 nb anne n-2
MONT D'ARENE-EST 74 80
PAYS DE FRANCE-EST
PORT SEC 10 4
CROIX DU SUD-SUD-OUEST 1 5
VERRERIE 24 25

I would like to be able to sort the datas in the scatter plot chart, to order them using nb annee n-1 in ascending or descending order.
The data would be represented as

nom nb annee n-1 nb anne n-2
PAYS DE FRANCE-EST
MONT D'ARENE-EST 74 80
VERRERIE 24 25
PORT SEC 10 4
CROIX DU SUD-SUD-OUEST 1 5

Maybe another mode on the X axis mode is doable ?

I've seen something about "categoryorder". maybe could it be use.

Don't know if I'm the only one wishing that feature.

Anyway, thanks for this already awesome plugin.

Additional context
image
image

@ghtmtt
Copy link
Owner

ghtmtt commented Jul 27, 2021

that's an option possible on plotly side but not implemented in DataPlotly (yet).

@REIMSMetropole
Copy link
Author

Ok.
I've made mat view in my db to sort data. The plugin keeps the order.

@ghtmtt
Copy link
Owner

ghtmtt commented Jul 29, 2021

great! I'm closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants