superset icon indicating copy to clipboard operation
superset copied to clipboard

Drilldown feature

Open bvpillai opened this issue 7 years ago • 9 comments

In the feature list, it is saying that it has drilldown capability. But when we explore Superset we couldn't find this feature. Any explanation appreciated.

Easy, code-free, user flows to drill down and slice and dice the data underlying exposed dashboards. The dashboards and charts acts as a starting point for deeper analysis.

Make sure these boxes are checked before submitting your issue - thank you!

  • [ *] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [ ] I have reproduced the issue with at least the latest released version of superset.
  • [ *] I have checked the issue tracker for the same issue and I haven't found one similar.

Superset version

0.29.0rc8

Expected results

Drill down feature available

Actual results

Can't find this feature

Steps to reproduce

Go to this URL and read the description/features https://superset.incubator.apache.org/ https://pypi.org/project/superset/

bvpillai avatar Apr 10 '19 03:04 bvpillai

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Jun 10 '19 05:06 stale[bot]

any idea about this

kalimuthu123 avatar Jun 19 '19 09:06 kalimuthu123

We have achieved this feature by injecting JavaScript through front end. Not got any Superset specific solution.

bvpillai avatar Jun 19 '19 09:06 bvpillai

can u explain me briefly about it

kalimuthu123 avatar Jun 19 '19 10:06 kalimuthu123

Can you share your solution? @bvpillai

biaogewow avatar Jul 31 '19 08:07 biaogewow

@bvpillai please share your solution.

Neel-rishabhsoft avatar Apr 15 '20 11:04 Neel-rishabhsoft

We have created a blank dashboard and placed a tabular element with the help of javascript to load the drill-down data. we used Ag-grid for this.

In the actual dashboard which is showing all the charts, we have enabled the click event. Then when a user clicked on a chart, through custom Javascript we identified the chart title, id and month, etc. Then pass this to above mentioned blank dashboard's URL as a parameter and open it. In the blank dashboard, with the help of ajax we populate the drill-down data.

If you need more details, please let me know.

binupillai305 avatar Apr 15 '20 12:04 binupillai305

Okay thanks a ton for your insight on this. Can you suggest any tutorial or something to go through to achieve the same. Because I am fairly new to javascript and I can't seem to get javascript working on top of superset. Where exactly did you add the javascript file in the superset?

Neel-rishabhsoft avatar Apr 23 '20 07:04 Neel-rishabhsoft

There is no specific tutorial for it. But if you have some javascript skills, you can do it. Regarding JS file, put the file in the /static/assets/ folder. Then include this JS file URL in the basic.html file residing in the template folder. Now it can be accessed through all the superset pages.

binupillai305 avatar Apr 23 '20 10:04 binupillai305