-
Notifications
You must be signed in to change notification settings - Fork 57
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
Option to disable sort? #4
Comments
Hello guys, anyway we can disable sorting? |
As a temporary solution, I've implemented the following (I've tried to edit as little as possible, so it's by no means the best solution, but it seems to work). Line 204 to 213 on Chart.Funnel.js i've changed to:
Then when initialising the chart, I add |
To expand on the work of @AaronF: I would also change line 289 from: That way it looks more like a pyramid with stacked bars: I then customized the fork from YetiForce (V1.1.2) since it's the one I've been using. Commented lines 188 to 190 on Chart.Funnel.js (I only need the keep option so faster this way):
Added right after line 320:
You can see it here: |
Hi, when showing a funnel with a predetermined order, like that of a defined sequence of stages, is there a way to disable the sort all together? As far as I can tell, the sort option checking is not strict. If it's not === asc, then it's sorted descending regardless of what's passed including false.
In my case, my stages are predetermined and the funnel needs to show the number of tickets at each stage. Showing "New" tickets label anywhere but the top of the funnel is confusing. Likewise, Closed tickets must be the bottom of the funnel as the end stage. (New -> Requesting Info -> Resolved -> Closed)
The text was updated successfully, but these errors were encountered: