比如:
var chart
$(function(){
chart = new Highcharts.Chart({
chart: {
renderTo: 'week_trategy_container',
plotBorderWidth: 1,
// height: 600,
// width:1000,
type: 'line'
},
title: {
text: null
},
credits:{
enabled:false,
position: {
align: 'left',
x: 350,
verticalAlign: 'bottom'
}
},
legend: {
enabled:true
})
//在这里如果我要重新设置title的值怎么设置
chart.options.title.text="我想要赋予的值";//但是不成功,请问怎么回事,
//如果我要取值是可以,比如
alert(chart.options.title.text);//这里能弹出正确的值来})
//请高手帮忙highcharts jquery
var chart
$(function(){
chart = new Highcharts.Chart({
chart: {
renderTo: 'week_trategy_container',
plotBorderWidth: 1,
// height: 600,
// width:1000,
type: 'line'
},
title: {
text: null
},
credits:{
enabled:false,
position: {
align: 'left',
x: 350,
verticalAlign: 'bottom'
}
},
legend: {
enabled:true
})
//在这里如果我要重新设置title的值怎么设置
chart.options.title.text="我想要赋予的值";//但是不成功,请问怎么回事,
//如果我要取值是可以,比如
alert(chart.options.title.text);//这里能弹出正确的值来})
//请高手帮忙highcharts jquery
http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/members/chart-settitle/
试试!