I am using a Shield UI JavaScript chart on a web page. The current type of the chart is pie. What I need is to provide the users some more data after they click on a slice of the pie. The data will be provided in a separate window, and I also need to pass some parameters in the URL of the opened document. I tried some techniques; however none of them is working properly. I use the pointSelect events
events: {
pointSelect: function(args) {
}
},
but am stuck at this point. Will appreciate any help.
If you open the window with
window.open
, you can reference that window afterwards:See https://developer.mozilla.org/en-US/docs/Web/API/window.open
If you just have to pass some parameters, you can also make use of the
location.hash
, for example, link topage.html#/some/variables/here
and then split thelocation.hash
, etc.