Event Click on Pie with highslide

Jan 2, 2013 at 9:23 PM

I'm using this code for a highstock, but I want use it for a Pie, can I do it? cause is not working :/

url = ...
$.get(url, function (data) {
          hs.htmlExpand(null, {
          pageOrigin: {
          x: pageX,
          y: pageY
     },
     headingText: title,
     maincontentText: data
     });
});

I tried adding that code directly in the click function, and with this:
.AddJavascripFunction("test", 
                "hs.htmlExpand(null, {" +
                    "pageOrigin: {"+
                    "},"+
                    "headingText: '...: '," +
                    "maincontentText: 'msje'"+
                "});"
        ) 
But refresh the page (I dont know why) and dont show me the window. Any idea?