Dashboards & Visualizations

How to add % symbol to only Bar Values (Column Chart - Chart Overlay) not for the Overlay Values

chand3690
Loves-to-Learn

Hi Team,

I have Created a Splunk Dashboard and trying to get Percent Symbol (%) only on the Bar's in the Column Chart(Chart-Over Lay).

I tried this .js file i got it from (https://community.splunk.com/t5/Splunk-Search/How-to-add-symbol-with-data-labels-in-charts/m-p/36159...)

require([
"jquery",
"splunkjs/mvc",
"splunkjs/mvc/simplexml/ready!"
], function($,mvc){

mvc.Components.get("myHighChart").getVisualization(function(chartView) {
chartView.on("rendered", function() {
$("g.highcharts-data-label text:not(:contains(%)) tspan").after(" %");
$("g.highcharts-yaxis-labels text:not(:contains(%)) tspan").after(" %");
});
});
});

 

where i was getting % symbol on both the bar values and the chart-overlay values .

 

For me, I need % only in Bar graph.

Please help me.

Thanks in Advance.

 

chand3690_0-1618791825161.png

 

 

 

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...