-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Line Chart Groups Don't Auto Sort Correctly #4328
Comments
Hi @brad-natelborg! If you didn't set order of series explicitly on |
Thanks for quick response! @kravets-levko We do have the |
Here's our query for reference:
|
Yes, exactly. And it's strange that it doesn't work. Thank you for reporting this, I'll check ASAP |
Any update on this? @kravets-levko |
Hi @brad-natelborg! Sorry, I tried a lot but I cannot reproduce this bug 😞 Also, I checked related code but didn't find anything that may cause this bug. So I have to ask you for more info:
Thanks you! |
One more thing: can you please show me a screenshot from |
@kravets-levko Thanks for looking into it more. It is quite strange as far as I can tell. If I go into the "view query" view, my data is still showing incorrectly, as shown below. But when I click "edit visualization", literally it is ordered immediately in that view. It's almost as if by clicking that button it is triggering it to be resorted correctly. See view below once I click "edit visulation": I am definitely ordering by new_name, there's nothing more I can do there. I tried sorting by descending/ascending with no change. It may be worth noting that the column "new name" is a string that is created by combining an integer + string field. On the series tab, it is always sorted correctly. See image below. But again, any time I try to edit the visualization it fixes itself. |
Issue Summary
I'm using the line chart to graph ~100 or so lines on one graph. I'm grouping them by a string which is of the format "012345 || This is a String". See picture below.
I have a filter set up to automatically only show me the last week of data. Which means every day when I look at this graph, it can show me different data, since we don't always have the same ~100 devices for the last week (they only report to the cloud once a week).
Long story short, every day when I go to the page, the graph does not auto sort the "Group By" column correctly automatically. You can see in the above picture, that it goes from 010029 to 010070, but there are actually 01003X values lower down. To fix this, I can go into the query and click "edit visualization" and then "save", at which point it magically sorts correctly again. But I need to do this manually every day if I want to see the correct sort order on the right side of the chart.
See correct sorting below.
Steps to Reproduce
See description above. Visualization settings are below.
I would expect the chart to automatically update and sort in ascending order correctly, but it only sorts correctly when I manually go into the visualation menu and then click "save" again.
I think the important piece is that every day I look at the chart, it will show a different set of ~100 lines due to the nature of the data. So the chart should re-do the sort every time it loads.
Technical details:
The text was updated successfully, but these errors were encountered: