Gantt Chart timeline issue with Vega visualization

Hi there,

I fixed my issue replacing my time unit as follow :

"x": {
 "timeUnit": "yearmonthdatehoursminutes",
#      "aggregate": "mean",
 "field": "startime",
 "type": "temporal",
 "axis": {format: '%H:00',"title": "horaire"}
 }
 
"x2": {
   "timeUnit": "yearmonthdatehoursminutes",
  "field": "endtime",
  "type": "temporal"},
 "color": {
  "value": "#33ccff"
  }

Now another concern would be to filter the timeline from d-1 to d.

Any idea ?
something like :

{ filter: { field: 'startime', timeUnit: 'yearmonthdatehoursminutes', 
                    range: [{day: 'previous day'},
                           {day: 'current day'}]
                  }
        }

Thanks for your help

1 Like