vega-lite:如何添加从日期时间列开始的列

vega-lite: how to add a column starting from a datetime column


我有一个带有日期时间列 (`2021-01-02T17:00:00`) 的源 CSV。

我想计算一个派生字段,它只包含月份名称 (%B)、“april”、“june”、ecc..

怎么做?

Here 我使用这个 CSV 文件。

您可以简单地提供一个转换 timeFormat expression as given below or in editor

"transform": [{"calculate": "timeFormat(datum.data, '%B')", "as": "Month"}],