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.