Analyze / Plot switch status

I am trying to plot the status of a switch. It actually works perfectly, if I go in settings/ items and click on “analyze”. That’s the plot I want to access from the UI without going into settings. Similar to how number items are accessible by just clicking on them. I am aware that clicking on a switch item in the front-end triggers it. Is there a solution for this?

So do not want to actually toggle the switch, just have the option to bring up the chart?

If so, use an oh-label-card or oh-label-item widget and set the action to analyze.