I understood the bubble chart contains in the Custom Visualization app.
What I want to have is another bubble chart with filtered query. Means lets say if I have bubble chart with Priority and State, the second one will get filtered out.
I understand from the code that - viz_bubblechart.js is the scripts that handles the chart with the ID. on click it sets the term.
require(['splunkjs/ready!'], function(){
var bubblechart = mvc.Components.get("bubblechart");
bubblechart.on("click", function(e) {
// Remove quotes in the value for terms that are numbers like "192" since it'll break the search query of timechart.
var name = e.name.replace(/"/g, '');
var category = e.category;
unsubmitted_tokens.set("form.priority", name);
submit_and_update_url();
});
}
The above code handles one chart properly. What I want is to create handler for another chart. I tried with all possibility like creating one more variable then calling click method. Lack of expertise in JS i am not able to create the handler.
Can someone please direct me where do I need to create another handler in same file ? so next graph will handle state variable.
Thanks
Praveen
↧