Vega-lite - transform calculate methods like toDate(...)


(Tony Skulk) #1

I have to following transformation in my vega-lite spec:

transform: [
	{
	  calculate: "toDate(datum._source['timestamp'])"
	  as: "time"
	}
]

I would need something like

toDateTime(...)

Which other calculate methods are available here?


(Marius Dragomir) #2

This is the list of methods available in vega-lite:


I haven't searched it extensively, but you can look and see if you can find something that fits your need.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.