浮点数无法连接

I'm trying to make a real time graph that updates every X seconds and then graphs it as time goes on. The problem I'm having is that when it plots the points, the points aren't connected. Here's what I have so far:

var r = [];

function fetchData() {
var options = {
    lines: { show: true },
    points: { show: true },
    xaxis: { show: false }
};
function doSomething(series)
{   
    r.push(series);
    $.plot($("#xx"), r, options);
}
$.ajax({
  url:      'playersonline.php',
  method:   'GET',
  dataType: 'json',
  success:  doSomething
});

setTimeout(fetchData, 3000);
}

fetchData();

This is what the output looks like currently. some pic http://screensnapr.com/e/ra6q70.png

It looks like each of your points is a separate series. For them to be connected, you need to put all the points in a single array, and give that to Flot as one series.

If you look at Flot's examples, there's one that demonstrates real-time updates of a single series.