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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...