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!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

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

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...