0

我正在将此代码用于高库存,但我想将其用于派,我可以这样做吗?原因不起作用:/

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

我尝试直接在 click 函数中添加该代码,并使用以下命令:

.AddJavascripFunction("test", 
                "hs.htmlExpand(null, {" +
                    "pageOrigin: {"+
                    "},"+
                    "headingText: '...: '," +
                    "maincontentText: 'msje'"+
                "});"
        ) 

但是刷新页面(我不知道为什么)并且不显示窗口。任何的想法?

4

1 回答 1

1

它应该可以工作,看看例子:

http://jsfiddle.net/tkEwD/2/

chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container'
        },
        title: {
            text: 'Browser market shares at a specific website, 2010'
        },
        series: [{
            type: 'pie',
            name: 'Browser share',
            data: [
                ['Firefox',   45.0],
                ['IE',       26.8],
                {
                    name: 'Chrome',
                    y: 12.8,
                    sliced: true,
                    selected: true
                },
                ['Safari',    8.5],
                ['Opera',     6.2],
                ['Others',   0.7]
            ]
        }]
    });
于 2013-01-31T13:05:46.923 回答