0
所以我想在这组数据中调用“名称”以在脚本的另一部分的函数中使用。散点图:如何将系列名称变为函数
我能叫股票,X,信息,并通过使用
event.point.ticker悬停变量,event.point.info
,但我没有带想出如何获取该系列的名称。我尝试过许多东西,如...
series.name,this.series.name和event.point.name,this.chart.name
都无济于事。下面是数据
series:
[{
name: 'Weak Outlook',color: 'red',data:
[{
x: 40,
y:10,
ticker:'Michael Kors: (KORS)',
info: 'Outlook roughly inline<br>1Q Revenue below street expectations', hover:'Guidance slightly below consensus<br>1Q Revenue to disappoint<br><a href="">read more</a>'
},
{
x: 20,
y:50,
ticker:'Shares to sell off on earnings',
info:'Data implies that shares, after management releases Q1 guidance, will...<br><br><a href="">read more</a>'
},
{
x:0,y:0,ticker:'Zynga: (ZNGA)'
},
{
x:3,y:4,ticker:'Avid: (AVID)'
},
{
x:4,y:10,ticker:'JCPenny: (JCP)'
},
{
x:6,y:25,ticker:'Deckers Outdoor: (DECK)'},
{
x:0,y:100,ticker:'Nutrisystem Corp: (NTRI)'
},
]}],
,这里是不工作的是我通过事件和系列作为参数的函数,公告,我使用“series.name”,试图得到的名称该系列......这似乎并不奏效
click: function(event,series)
{
xmlhttp.open("GET","/s.php?o="+event.point.ticker+"&q="+event.point.y+"&r="+event.point.x+"&s="+event.point.info+"&t="+series.name+"&u="+event.point.str5+"&v="+event.point.str6,true);
哪个事件和元素(点/系列)应该被解雇,以显示更多的信息? –