Dashboards & Visualizations

Need to remove hand icon from a pie chart after drilldown

architkhanna
Path Finder

i have a pie chart with drilldown. When one value is chosen , the pie shows that value with 100% ( which is correct)
However,There is a hand icon which still shown on hovering that pie indicating further drilling(However, it doesn't drill down further).Can I change that to just mouse icon

0 Karma

niketn
Legend

Add the following piece of code to your dashboard in order to override hand cursor with the default arrowcursor, provided pie chart id is myChart i.e. <chart id="myChart">

  <row depends="$alwysHideCSSStyle$">
    <panel>
      <html>
        <style>
          #myChart g.highcharts-series{
            cursor: default !important;
          }
        </style>
      </html>
    </panel>
  </row>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

yeguchi
Explorer

I think you configure drilldown to same panel. Drilldown is enabled in the panel so hand cursor for drilldown is always displayed at this case.

I recommend you to prepare other panel for drill down destination.

<panel>
    <chart>
      <search>
        <query>your search | stats count by some_value<query>
        <earliest>0</earliest>
        <latest></latest>
        <sampleRatio>1</sampleRatio>
      </search>
      ...
      <drilldown>
        <set token="test">$click.value$</set>
      </drilldown>
    </chart>
  </panel>
  <panel depends="$test$">
    <chart>
      <search>
        <query>your search $test$| stats count by some_value<query>
        </query>
        <earliest>0</earliest>
        <latest></latest>
        <sampleRatio>1</sampleRatio>
      </search>
      ...
    </chart>
  </panel>

If you wish, you can switch drilldown source and destination panels in same location using reject/depend attribute, but please note it requires reloading page if you want to back to drilldown source panel.

<panel rejects="$test$">
    <chart>
      <search>
        <query>your search | stats count by some_value<query>
        <earliest>0</earliest>
        <latest></latest>
        <sampleRatio>1</sampleRatio>
      </search>
      ...
      <drilldown>
        <set token="test">$click.value$</set>
      </drilldown>
    </chart>
  </panel>
  <panel depends="$test$">
    <chart>
      <search>
        <query>your search $test$| stats count by some_value<query>
        </query>
        <earliest>0</earliest>
        <latest></latest>
        <sampleRatio>1</sampleRatio>
      </search>
      ...
    </chart>
  </panel>

Hope it helps.

0 Karma

niketn
Legend

@architkhanna Pie Chart on hover should show ToolTip Text not Hand Cursor. Is this for disabling Tooltip Text for Changing mouse cursor? Can you share existing behavior of mouse hover on pie chart? Are you using built in Pie Chart or any other custom visualization? Do you have any existing CSS override for Pie Chart?

Please add more details for us to assist you better.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

architkhanna
Path Finder

yes the tooltip is coming fine on first hover. If you slide the cursor a little away from the tooltip to the other half of the chosen pie,a hand icon is shown.
We are using the default pie chart provided by splunk.
No css code is done for Pie chart

0 Karma

niketn
Legend

So, is your requirement to keep the Tooltip and not have hand icon?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

architkhanna
Path Finder

Yes,that's correct.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...