Disable View, Share and More menu from graph

Hi,

How can I disable or hide from users the context menu of the graphs allocated in my dashboard.
I just want to show the metrics, but when the user locates the pointer above the graph, it shows the menu with the option described.

example_graph

Is there any way to disable that menu?

Thanks in advanced.
Regards,

Damian Sarmiento.

2 Likes

@smdamian did you manage to hide the menu? Trying to do the same.

Hi, any news? I’m interested about that. I think that’s important have an user really only-view the graph how I show him without possibility of any interaction, albeit minimal.

Thanks

@baarken
How to “did you manage to hide the menu? Trying to do the same.”

Can you elaborate the steps to do this, thanks

Hi, I am facing same issue here, Let me know if anyone has solved this issue?
@smdamian, @baarken

Thanks in advance!!

Here is a solution to hide the menue but it won’t disable it. So the user can still toggle through the view options or press ESC to show the menue again.

  1. To just hide the menue you have to attach (1) &kiosk=tv or (2) &kiosk at end of your url.
    (1) will hide the menue bar on the left and just shows a small one on the top
    (2) completely hides all menues and you have to press ESC to go back

    A url with this option will look like this:
    http://localhost:3000/d/[DashboardUid/[Organisation]?orgId=1&kiosk=tv

    Just attach it to the end.

  2. You can also hide it by using CSS margin-left to cut the menue bar out of the rendering iframe.
    .dashboard-content > iframe {
    width: 100%;
    height: 1000px;
    border: none;
    margin-left: -92px;
    }

  3. A third option is to inject CSS directly into the iframe by using some Javascript.
    Doing so you could use
    .sidemenu {
    display: none;
    }
    to hide it completely.
    But CORS (Cross Region Scripting) will prevent you from doing this for security reasons.
    So be aware that using this option will may cause some serious trouble.

@pixelpapst: This is not the solution which the folks are looking at. As far as I understand, the question is disabling the view, export options in the Panel window and not hiding the dashboard side menu.

Your proposed solution 1) kiosk mode Doesn’t stop the users from selecting the View, Share, More options available in the Graph Panel Menu window.

Ideally what many of us are looking for a solution is to at-least hide the Export option directly from the UI for user with Read permissions. [Panel Menu --> View, Share, More–Export CSV, JSON etc;]. It is fine if he/she can do so using Chrome dev tools but not from UI.