0
我需要在一個彈出打開highchart幫助,而clciking圖表點擊的動態highchart在新窗口中打開
$(document).ready(DrawMyGraph1);
function DrawMyGraph1() {
var xaxis = $.parseJSON($("#hdnXaxis").val());
var series1 = $.parseJSON($("#hdnYaxis").val());
chart = new Highcharts.Chart(
{
chart: {
type: 'column',
renderTo: 'container3',
defaultSeriesType: 'area',
events: {
click: function()
{
}
}
},
title: {
text: ''
},
subtitle: {
text: ''
},
xAxis: {
categories: xaxis,
labels: {
enabled: false
}
},
yAxis: {
title: {
text: 'No of Patients'
}
},
credits: {
enabled: false
},
tooltip: {
formatter: function() {
return this.series.name + ' - ' + Highcharts.numberFormat(this.y, 0);
}
},
series: series1
});
}
我需要調用函數「hs.Expander.prototype」在圖表click事件使用highslide打開一個彈出的highchart。可誰能幫助
看一看:http://www.highcharts.com/demo/line-ajax它幾乎與你想要的一樣 - 唯一的區別是事件綁定到點,並且你想綁定到圖表。 –