Receive data via AJAX with jQuery Flot
问题 I have a problem with jQuery flot. PHP output (not JSON): [[1, 153], [2, 513], [3, 644]] ~~ [[1, 1553], [2, 1903], [3, 2680]] jQuery call: $.ajax({ url: 'xxx.php', success: function (data) { var dataArray = data.split('~~'), dataArray1 = dataArray[0], dataArray2 = dataArray[1], plot = $.plot($('#xxx'), [{ data: dataArray1, color: colours[0] }, { data: dataArray2, color: colours[1], points: { show: true, } }, ], { series: { bars: { show: true, barWidth: .6, align: 'center' } }, grid: { show: