The CreatorCon Call for Content is officially open! Get started here.

How to create a Hyperlink on the reports generated through high charts?

amarjeet
Kilo Contributor

I have created a report using the high chart API . i want to create a hyper link to the reports generated.

As we can see in out of box functionalities in service-now in reporting ,the same functionality is needed in high chart as well.

tltoulson

1 ACCEPTED SOLUTION

tltoulson
Kilo Sage

Hi Amarjeet,



If I understand correctly, this JS Fiddle shows a great example of providing clickable URL's through the HighChart API and here's the HighChart API Reference.   This gist of it is that you need to use the click event's object in your chart configuration which looks something like the following:



{


...


      plotOptions: {


              series: {


                      point: {


                              click: function () { location.href = 'url here'; }


                      }


              }


      }


...


}


View solution in original post

8 REPLIES 8

tanuja8
Giga Contributor

Hello Amarjeet,



According to my knowledge the high charts are created on custom UI page which includes the ServiceNow prototype adapter in it, as said in the below link.


Please take a look


I am a creator — Custom Dublin HighChart Chart Report - Jay Ford



If you have purchased additional license from Highsoft to get the whole uses of HighCharts then refer to the below link


https://codecreative.io/servicenow/intro-to-highcharts-in-service-portal



Thanks,


Tanuja


tltoulson
Kilo Sage

Hi Amarjeet,



If I understand correctly, this JS Fiddle shows a great example of providing clickable URL's through the HighChart API and here's the HighChart API Reference.   This gist of it is that you need to use the click event's object in your chart configuration which looks something like the following:



{


...


      plotOptions: {


              series: {


                      point: {


                              click: function () { location.href = 'url here'; }


                      }


              }


      }


...


}


gyedwab
Mega Guru

If you're trying to create a more advanced report that is live, drillable, and embedded in the ServiceNow homepage, you can get what you need without having to write any code at all using Explore Analytics.


amarjeet
Kilo Contributor

Hi Yedwab,


I have created a report in Explore analytics .


Capture.PNG


I wanted the count of tickets , how i can achieve it.



My requirement is like this:


Capture1.PNG


I have created through High charts, but i want to achieve it by Analytics.



thanks