ant-design-charts-blazor
ant-design-charts-blazor copied to clipboard
Use dateTime on Scatter XAxis?
Can we use DateTime as the XAxis to plot scatter graphs? Demos only show numeric values on both Y and XAxis.
{
"ts_code": "000001.SH",
"trade_date": "2020-03-13",
"close": 2887.4265,
"open": 2804.2322,
"high": 2910.8812,
"low": 2799.9841,
"vol": 366450436,
"amount": 393019665.2
},
{
"ts_code": "000001.SH",
"trade_date": "2020-03-12",
"close": 2923.4856,
"open": 2936.0163,
"high": 2944.4651,
"low": 2906.2838,
"vol": 307778457,
"amount": 328209202.4
},
{
"ts_code": "000001.SH",
"trade_date": "2020-03-11",
"close": 2968.5174,
"open": 3001.7616,
"high": 3010.0286,
"low": 2968.5174,
"vol": 352470970,
"amount": 378766619
}
. . .
ScatterConfig config1 = new ScatterConfig()
{
XField = "trade_date",
YField = "amount",
Shape = "circle",
Size = 4,
...
yes you can , just change the XField to your datetime variable