Dashboards & Visualizations

Pie Chart with Number + DrillDown click.value

CcCcCcCcCc1
New Member

https://answers.splunk.com/answers/562629/how-to-configure-pie-chart-to-display-count-within.html

same as above post, would like to have a pie chart with its count, so followed the post and its work, it can show the Count in Pie Chart

...  | stats Count by Severity  | eval SeverityCount=Severity." : ".Count  | fields SeverityCount, Count

Beside, we still have a token to Pass the Severity Critical/High/Medium to chart 2 for drilldown base on what we click

unfortunately, it's now passing Critical : 25 instead of passing Critical to chart 2 when we click on it, which cause the chart 2 not working.

    <drilldown>
    <set token="Severity">$click.value$</set>
    </drilldown>

would like to seek any way can fulfill both requirements ( Show Count in Pie Chart + Pass the correct Value to Chart 2 ) ? 😐

alt text

0 Karma
1 Solution

vnravikumar
Champion

Hi

Try with

        <drilldown>
          <eval token="test">replace('click.value',"(:[^:]+)$","")</eval>
        </drilldown>

View solution in original post

vnravikumar
Champion

Hi

Try with

        <drilldown>
          <eval token="test">replace('click.value',"(:[^:]+)$","")</eval>
        </drilldown>

CcCcCcCcCc1
New Member

Awesome, it's solved !!! thx Bro 🙂

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...