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

ods-analysis-sort not sorting #109

Open
scMarth opened this issue Jul 2, 2018 · 1 comment
Open

ods-analysis-sort not sorting #109

scMarth opened this issue Jul 2, 2018 · 1 comment

Comments

@scMarth
Copy link

scMarth commented Jul 2, 2018

Hello, I am trying to use ods-analysis to print some results in sorted order, but it doesn't seem to be working. I am looking at the example on this page:

https://opendatasoft.github.io/ods-widgets/docs/#/api/ods-widgets.directive:odsAnalysis

In the example code, it is specified to sort by circumference:

ods-analysis-sort="circonferenceencm"

But the resulting chart isn't sorted.

@jmorel
Copy link
Contributor

jmorel commented Jul 4, 2018

Hello @scMarth! You're right, there's an issue with the example that I'll fix.

The ods-analysis-sort parameter takes a serie's name as input. In this case, the serie is declared as ods-analysis-serie-circonference="AVG(circonferenceencm)" which means the name is actually circonference and not circonferenceencm.

The correct setup is therefore ods-analysis-sort="circonference" (or ods-analysis-sort="-circonference" for reverse order sort).

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

No branches or pull requests

2 participants