I tried it and its working fine. Which version chart widget are you using? I am using latest version
[{
"name": "Temperature",
"type": "scatter",
"x": ["2022-05-5", "2022-05-06", "2022-05-07", "2022-05-08", "2022-05-09"],
"y": [5, 20, 12, 14, 14]
},
{
"name": "Temperature2",
"type": "scatter",
"x": ["2022-05-5", "2022-05-06", "2022-05-07", "2022-05-08", "2022-05-09"],
"y": [45, 30, 70, 80, 50]
}
]