vegawidget/virgo

scale seems to be broken

Closed this issue · 2 comments

cars <-
  jsonlite::fromJSON("https://vega.github.io/vega-editor/app/data/cars.json")

cars %>% 
  vega() %>% 
  mark_bar(
    enc(
      x = vg_count(), 
      y = Name, 
    )
  ) %>% 
  scale_y(breaks = NULL)

Error occurs at rescale_domain()

@earowang does rescale_domain() need to dispatch on factors and virgo_op?

Yep, should dispatch on factors and others.