如何在不使用scaleTime的情况下使用d3 v4创建多折线图?

时间:2018-11-03 08:41:32

标签: javascript d3.js

下面是我的数据。借助此数据,我想在不使用scaleTime的情况下创建多线图。

我希望我的x和y轴像 enter image description here

let data = [{
"Transaction Period":   "2018-09-11T18:30:00.000Z"
"Total Receipts":4000,
"Total Payment" :   4000
},{
"Transaction Period":   "2018-10-03T18:30:00.000Z",
"Total Receipts":   1000,
"Total Payment" :6000
},{
"Transaction Period":   "2018-10-02T18:30:00.000Z"
"Total Receipts":   8000,
"Total Payment" :20000
},{
"Transaction Period":   "2018-10-07T18:30:00.000Z",
"Total Receipts":   4000,
"Total Payment" :10000
},{
"Transaction Period":   "2018-10-04T18:30:00.000Z",
"Total Receipts":   12000,
"Total Payment":    12000}]

0 个答案:

没有答案