[1].[图片] Json字符串和highcharts数据图表展现.jpg 跳至 [1] [2]
[2].[代码] Json字符串和highcharts数据图表展现 跳至[1] [2]
016 |
function GetseriesValue() { |
018 |
var DropCustomerName = $( "#DropCustomerName" ).val(); |
022 |
url: "/ashx/GetClassTypeJosn.ashx" , |
023 |
data: { method: "mlqtylist" ,DropCustomerName: DropCustomerName }, |
026 |
success: function (result) { |
028 |
$.each(result, function (i,field) { |
030 |
dataTmp += "{name: '" + field.CustomerName + "',data: [" + field.Jan + "," + field.Feb + "," + field.Mar + "," + field.Apr |
031 |
+ "," + field.May + "," + field.Jun + "," + field.Jul + "," + field.Aug + "," + field.Sep + "," + field.Oct |
032 |
+ "," + field.Nov + "," + field.Dec + "]}" + "," ; |
035 |
dataTmp=dataTmp.substring(0,dataTmp.length - 1); |
046 |
function GetData(dataTmp) { |
049 |
$( '#container' ).highcharts({ |
052 |
linearGradient: { x1: 0,y1: 0,x2: 1,y2: 1 }, |
054 |
[0, 'rgb(255,255,255)' ], |
055 |
[1, 'rgb(240,240,255)' ] |
059 |
plotBackgroundColor: 'rgba(255,.9)' , |
064 |
text: 'Monthly Total Information ' , |
068 |
text: 'Source: winnaodan.net' , |
073 |
downloadPNG: '下载JPEG 图片' , |
074 |
downloadJPEG: '下载JPEG文档' , |
075 |
downloadPDF: '下载PDF 文件' , |
076 |
downloadSVG: '下载SVG 矢量图' , |
077 |
contextButtonTitle: '下载图片' |
083 |
categories: [ 'Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sep' , 'Oct' , 'Nov' , 'Dec' ] |
086 |
minorTickInterval: 'auto' , |
093 |
formatter: function () { |
094 |
return this .value + '/Qty' ; |
098 |
text: 'Total Analyze (Qty)' |
107 |
formatter: function () { |
108 |
return '<b>' + this .series.name + '</b><br/>' + this .x + ': ' + this .y + yAxisLabels; |
113 |
font: '9pt Trebuchet MS,Verdana,sans-serif' , |
124 |
verticalAlign: 'middle' , |
127 |
series: eval( "[" + dataTmp + "]" ) |
129 |
} 我只能说不要太崇拜哥,MM可私信哥,男性程序猿的就免了,发了哥也不会回。 zhe-jiang.he@hp.com |
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|