Hi Experts,
I am struggling to stop time chart drilldown using js. Here is the code.
this._chartView = new ChartView({
managerid: 'details-search-manager',
'charting.legend.placement': 'none'
'charting.drilldown': 'none'
});
'charting.legend.placement': 'none'
is working absolutely fine but 'charting.drilldown': 'none'
is getting ignored by Splunk. Please help.
The only stupid problem with my code was that I was missing ',' in the 3rd line .Due to this silly mistake Splunk was ignoring 3rd line .
The only stupid problem with my code was that I was missing ',' in the 3rd line .Due to this silly mistake Splunk was ignoring 3rd line .
Javascript provides a method called preventDefault(). The method must be tied to an event. Below is an example using table.
splunkTable = new TableView({ id: "members"+epoch2.getTime(), managerid: elementSearch, el: $(innerElement) }).render(); splunkTable.on("click", function(e) { e.preventDefault(); });
The sample above is an extract from a working Splunk project.
Thanks for the solution , it works. The only stupid problem with my code was that I was missing ',' in the second line .Due to this silly mistake Splunk was ignoring 3rd line .Thanks again
Thank for you for voting my answer up, could you accept it?