我正在构建一个折线图,记录每个步行者每天所走步数的读数,其中每个成员都是一个系列,x 轴是日期,y 轴是所走的步数。
但是,步行者可能每天都有读数,也可能没有读数,这会导致问题。当显示图表时,我收到一条错误消息,指出轴 #0 的数据列不能是字符串类型。
这是我的 json 示例
{
    "cols" : [{
            "id" : null,
            "label" : "Date",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "Joe Bloggs",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "John Doe",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "Jane Doe",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "John Bloggs",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "Jane Bloggs",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "Ann Walker",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "Andy Walker",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "Tom Jones",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "Foo Bar",
            "type" : "string"
        }, {
            "id" : null,
            "label" : "Bar Foo",
            "type" : "string"
        }
    ],
    "rows" : [{
            "c" : [{
                    "v" : "02 Sep 13",
                    "f" : null
                }, {
                    "v" : 6787,
                    "f" : null
                }, {
                    "v" : 1558,
                    "f" : null
                }, {
                    "v" : null,
                    "f" : null
                }, {
                    "v" : null,
                    "f" : null
                }, {
                    "v" : 9913,
                    "f" : null
                }, {
                    "v" : null,
                    "f" : null
                }, {
                    "v" : null,
                    "f" : null
                }, {
                    "v" : 27881,
                    "f" : null
                }, {
                    "v" : null,
                    "f" : null
                }, {
                    "v" : null,
                    "f" : null
                }, {
                    "v" : 7410,
                    "f" : null
                }, {
                    "v" : null,
                    "f" : null
                }, {
                    "v" : null,
                    "f" : null
                }, {
                    "v" : 2126,
                    "f" : null
                }
            ]
        }]
}
我省略了额外的行以保持简短。出于格式化目的和简单性,我故意将日期视为字符串
在这种情况下,我可能有也可能没有行的值,我应该如何表示它?