-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature requests? #8
Comments
I don't really have too much in the way of feature requests at the moment but thanks for asking! I do appreciate you having built this app -- the gantt charts are really cool. I guess maybe one thing I noticed is that for a newbie it is not immediately obvious how you would incorporate the gantt chart into a dashboard that contains form inputs. The example doesn't really address that. What we found we had to do was convert from the XML dashboard to an HTML dashboard and add a new search block to the JavaScript section of the generated HTML page that would incorporate the inputs from the form. The example uses 'data-options' on a splunk-manager div to do the search but form inputs are not substituted in search strings specified that way. Perhaps something you could do is enhance the example(s) to show a case like that. Ideally things would be set up such that you can do a XML based dashboard with form inputs and a gantt chart but it's not clear to me if there is any way for you to make that possible. I have not developed any of my own add-ons to Splunk like this splunk-gantt app so I'm not that familiar with the APIs to know what is and is not possible. |
Hi I do have a feature request that came in from one of our users who by the way love this chart. On one of our dashboard depending on what is selected the gantt chart can have many categories which results in a very long chart. It would be great if we could put a vertical scrollbar on the chart when it reaches a certain height. I was going to attempt to learn to do this via css but no idea if that is even possible For the token request ben mentioned I managed to do this by enclosing the search in token_safe;
I have only done this on a html dashboard and not tried via xml but I am happy to contribute an example if it works. Other features for the future that would be good are;
Happy Holidays Martin |
Hi @ben-roling, @stash1001 is right, you can add token values to the search with the "token_safe" stuff. I mentioned it in the documentation at the bottom (section 'Using forms with Gantt charts'). I've turned the demo dashboard into a form as a full example, although the "concurrent" dashboard was already using a time picker. This works just fine with Simple XML dashboards, there's no need to go to HTML dashboards. @stash1001, I'll look into the vertical scrollbar. I actually have no idea how to do that with d3, but I'll see if I can work it out. I'll also look into hiding the chart if a token isn't set, and setting tokens. How would you see that last one working? I guess it would replace drilldowns, right? Happy holidays! |
I've added some examples on how to hide the chart based on tokens and how to use the chart with form inputs. I've also added some options to emit tokens instead of drilldown events (a652d6d), so you can now integrate the charts better with the rest of the dashboard. I'd appreciate it if you guys could test it on 6.0 and 6.1, I can't do it myself right now. Note that the 'concurrent tasks' demo dashboard probably won't work on versions earlier than 6.2, as it uses Splunk's new base search syntax. I'm thinking of making a version of the dashboard without it so <6.2 users can still see the compact mode in action, but I don't know if it's worth it... |
Thanks for the tips on use of token_safe! I think your update to include that in the main example will be helpful. |
Just updated now. Everything looks good so far currently we are running 6.1 in splunk cloud. I will let you know if we hit any problems. Thankyou for all these changes |
I managed get some vertical scrollbars on a HTML dashboard. it just needed inline CSS
I think this looks terrible though. Am going to use it to show the user that vertical scroll bars don't look good on a gantt chart. Please disregard this request. |
I had understood this as "vertical scroll bars for the legend", much like what the default Splunk charts do when you have too many items in the legend. I take it that's not what you meant? I haven't gotten around to implementing it yet, though. |
Hi @stash1001, @ben-roling and @nibin1990 (and anybody else that's interested),
I have a few days to work on this app. Do you guys have any feature requests? Any new options you would like to see implemented? Let me know!
The text was updated successfully, but these errors were encountered: