function getChart(productId,kuan,gao) {
	$.ajax({
				url :'/product/performance.do',
				data : {
					productId : productId
				},
				success : function(data) {
					//if(data.data.hsdata==null||data.data.hsdata==""||data.data.hsdata==undefined||data.data.hsdata.length<2){
					//	return $("#chart").html("<img src=\"../../static/images/no_data.png\"/>");
					//}
					var chart1 = new Highcharts.StockChart({
    // colors: ['#D5402E', '#FFCB48', '#145793'],
    colors: ['#D5402E', '#FFCB48'],
    chart: {
        renderTo: 'chart',
        width: kuan,
        height: gao
    },
                                
    credits: {
        enabled: true,
        href: null,
        text: ''
    },
    exporting:{ enabled:false},
    title: { text:null, style:{color:'#004789'}},
    rangeSelector: {  enabled:false},
    tooltip: {
        enabled: true,
        crosshairs: true,
        formatter: function() 
        {
            var date = new Date(this.x);
            var header = '<b>时间: ' + date.getFullYear()+'年'+ (date.getMonth()+1) + '月'+ date.getDate() + '日' +'</b>';
            $.each(this.points, function(i, point) 
            {
                header += '<br/><span style="color:' + this.point.series.color + '">' + this.point.series.name +':'+Highcharts.numberFormat(this.y,4)+'</span>';
            });
            return header;
        }
    },              
    xAxis: {
        type: 'datetime',
        gridLineDashStyle: 'longdash',
        dateTimeLabelFormats: {
            second: '%Y-%m-%d<br/>%H:%M:%S',
            minute: '%Y-%m-%d<br/>%H:%M',
            hour: '%Y-%m-%d<br/>%H:%M',
            day: '%Y<br/>%m-%d',
            week: '%Y<br/>%m-%d',
            month: '%Y-%m',
            year: '%Y'
        },
        gridLineWidth: 1,
        lineColor: '#000',
        tickColor: '#000',
        showFirstLabel:true,
        showLastLabel:true,
        labels: {
            style: {
                color: '#000',
                font: '11px Trebuchet MS, Verdana, sans-serif',
                align: 'right',
                style: { font: 'normal 13px 宋体' }
            },
            formatter: function() {
                return Highcharts.dateFormat('%Y-%m-%d', this.value);
            }      
        },
        title: {
            style: {
                color: '#333',
                fontWeight: 'bold',
                fontSize: '12px',
                fontFamily: 'Trebuchet MS, Verdana, sans-serif'
            }
        }
    },

    yAxis: {
        
        showLastLabel :true,  
        tickPixelInterval :40,
        lineColor: '#000',
        lineWidth: 1,
        tickWidth: 1,
        
        tickColor: '#000',
        labels: {
            align:'right',
            x:-20,
            y:5,
            style: {
                color: '#000',
                font: '11px Trebuchet MS, Verdana, sans-serif'
            }
        },
        title: {
            style: {
                color: '#333',
                fontWeight: 'bold',
                fontSize: '12px',
                fontFamily: 'Trebuchet MS, Verdana, sans-serif'
            }
        }
    },

    legend: {
        enabled: true,
        itemStyle: {
            font: '9pt Trebuchet MS, Verdana, sans-serif',
            color: '#004789'
            
        },
        itemHoverStyle: {
            color: '#004789'
        }
       
    },
    scrollbar: { enabled: false },
    navigator: { 
        enabled:true,
        top:gao-80,
        height:20,
        xAxis: {
            labels: {
                enabled:false
            }
        }

    },

    plotOptions: {
        series:{ lineWidth:1 },
        line: {
            cursor:'pointer',
            shadow:false,
            states: {   /*状态*/
                hover: {   /*(鼠标)悬浮状态*/
                    lineWidth: 1    /*曲线宽*/
                }
            }
        }
    } ,

								series : [ {
									//lineWidth:1

									name : '净值走势',
									data : data.data.pdata
								}, {

									name : '沪深300收益',
									data : data.data.hsdata
								} ]
							});
				}
			});

}