asp.net UpdatePanel 更新 Highcharts
<scripttype="text/javascript">functionmyFunction(a1,a2,a3,a4){//;//pointInterval,poin...
<script type="text/javascript">
function myFunction(a1, a2, a3, a4) {
// ; //pointInterval,pointStart,series,
alert(a1); var chart;
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'spline'
},
title: {
text: '',
floating: false
},
subtitle: {
text: a4,
align: 'right'
},
xAxis: {
type: 'datetime'
},
yAxis: {
title: {
text: ''
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
valueSuffix: ''
},
plotOptions: {
spline: {
line: {
dataGrouping: {
enabled: false
}
},
lineWidth: 1,
states: {
hover: {
lineWidth: 1
}
},
marker: {
enabled: false
},
pointInterval: a1,
pointStart: a2
}
},
series: [a3
],
navigation: {
menuItemStyle: {
fontSize: '10px'
}
}
});
}
</script>
后台调用:
ScriptManager.RegisterStartupScript(this.UpdatePanel1, Page.GetType(), "", "<script>myFunction('" + s_pointInterval + "," + s_pointStart + "," + s_series + "," + s_subtitle + "');</script>", false);
图标出不来,数据没问题,请问 该如何实现这种动态刷新??? 展开
function myFunction(a1, a2, a3, a4) {
// ; //pointInterval,pointStart,series,
alert(a1); var chart;
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'spline'
},
title: {
text: '',
floating: false
},
subtitle: {
text: a4,
align: 'right'
},
xAxis: {
type: 'datetime'
},
yAxis: {
title: {
text: ''
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
valueSuffix: ''
},
plotOptions: {
spline: {
line: {
dataGrouping: {
enabled: false
}
},
lineWidth: 1,
states: {
hover: {
lineWidth: 1
}
},
marker: {
enabled: false
},
pointInterval: a1,
pointStart: a2
}
},
series: [a3
],
navigation: {
menuItemStyle: {
fontSize: '10px'
}
}
});
}
</script>
后台调用:
ScriptManager.RegisterStartupScript(this.UpdatePanel1, Page.GetType(), "", "<script>myFunction('" + s_pointInterval + "," + s_pointStart + "," + s_series + "," + s_subtitle + "');</script>", false);
图标出不来,数据没问题,请问 该如何实现这种动态刷新??? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询