JQ統計圖表使用LoadData方式

//X軸為年月,Y軸為百分比為例



var  percent = [];//ex: ['20','50','70'']



var  yearmonth = [];//ex: ['201701','201702'','201703']



//PLOTID,LineChart為例



var plot1 = $.jqplot('JQLineChart1', [percent],//百分比 {



title: 'TAT Target', //PLOTTitle



seriesDefaults: {



pointLabels: { show: true }



},



axes: {



xaxis: {//X



renderer:
$.jqplot.CategoryAxisRenderer,



ticks: yearmonth //年月



},



yaxis: {//Y



min: 0, //刻度最小值



max: 100, //刻度最大值                                



}



}                       



});



plot1.replot();//重製圖表