问题描述
functionbtn_Search(){customer_desc=$("#customer_desc").val();YearDate=$("#YearDate").val();baobiao=$("#baobiao").val();$.ajax({type:'get',data:{customer_desc:customer_desc,YearDate:YearDate,baobiao:baobiao},url:'/ExampleModule/SFCTWO/GetZhu',success:function(data){varBindData=[];varmonths=[];for(varkeyinjson.list){BindData.push(json.list[key].y);//alert(json.list[key].y);months.push(json.list[key].x);//alert(json.list[key].x);}vardataObj=eval("("+BindData+")");alert(dataObj);//alert(months);chart=$('#container').highcharts({chart:{type:'column',zoomType:'x'},title:{text:'个人发卡量统计'},subtitle:{text:document.ontouchstart===undefined?'框选放大':'手势放大'},xAxis:{categories:months},yAxis:{min:0,title:{text:'发卡量'}},tooltip:{headerFormat:'<span>{point.key}</span><table>',pointFormat:'<tr><tdstyle="color:{series.color};padding:0">{series.name}:</td>'+'<tdstyle="padding:0"><b>{point.y:.1f}张</b></td></tr>',footerFormat:'</table>',shared:true,useHTML:true},plotOptions:{column:{pointPadding:0.2,borderWidth:0}},series:[{name:$("#customer_desc").val(),data:BindData}]});//chart1.series[0].setData(BindData);//chart.series[0].setData(BindData);}});};
解决方案
解决方案二:
X轴坐标有显示但是Y轴坐标不显示