Showing results for 
Search instead for 
Did you mean: 
Community Team Member
Community Team Member
In this post, we will show how to override the default click behavior of the column chart widget.  This same widget script should work for bar, line, and area charts as well.
Create a Sisense widget that contains the data points you want to pass on.  
From the widget editor, click the settings menu at the top right and open up the Script Editor.  Copy and paste the following script, swapping out the baseUrl variable to meet your criteria, then click save.
Welcome to your Widget's Script.
To learn how you can access the Widget and Dashboard objects, see the online documentation at

widget.on('render', function(widget,args){

 // Define the base url
 var baseUrl = '';

 // Get the labels for the axis and/or break by
 var axisLabel = $$get(widget.metadata.panel(0).items[0], 'jaql.title', null),
     breakByLabel = $$get(widget.metadata.panel(2).items[0], 'jaql.title', null);
 // Define a click handler
 function wasClicked(event){
  // Build the link
  var url = baseUrl + axisLabel + '=' + this.category;

  // Is there a break by field too?
  if (breakByLabel){
    url += ', ' + breakByLabel + '=' +;

  // Open the url in a new tab,'_blank');

 // Get a reference to the highcharts object
 var hc = widget.queryResult;

 // Loop through each data series

  // Loop through each data point{

   // Assign the event handler = {
    'click': wasClicked
Now, when you click on a specific bar/column it will open up the url you specified and pass along the selection  from the category/axis/break by panels.  The labels used to pass through come from the panel titles, similar to how the legend and tooltips are displayed.
Version history
Last update:
‎02-09-2024 10:22 AM
Updated by:
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: