我试图在我的ubuntu机器内存中绘制图形。
下面给出了如何使用JSON示例创建面积图作为预期输出
我能够使用stack
中的nest
和version 3
函数创建d3
但是,无法在d3
version 4
或version 5
[
{
"memory": "reserved",
"value": 3276823909,
"timestamp": "Thu Jul 11 2019 11:40:00 GMT+0530 (India Standard Time)"
},
{
"memory": "working",
"value": 89273498,
"timestamp": "Thu Jul 11 2019 11:40:00 GMT+0530 (India Standard Time)"
},
{
"memory": "in_memory",
"value": 234823947,
"timestamp": "Thu Jul 11 2019 11:40:00 GMT+0530 (India Standard Time)"
},
{
"memory": "reserved",
"value": 94239898,
"timestamp": "Thu Jul 11 2019 11:40:00 GMT+0530 (India Standard Time)"
},
{
"memory": "buffer_manager",
"value": 238492389,
"timestamp": "Thu Jul 11 2019 11:40:00 GMT+0530 (India Standard Time)"
}
]
例外的输出: