hrbrmstr / metricsgraphics

:chart_with_upwards_trend: htmlwidget interface to the MetricsGraphics.js D3 chart library
http://hrbrmstr.github.io/metricsgraphics/
Other
132 stars 35 forks source link

Just realized `data` can also be an atomic vector #23

Closed yihui closed 9 years ago

yihui commented 9 years ago

It is embarrassing that I'm submitting the third PR to fix this issue, since I did not notice the data argument can also be a numeric vector for histograms:

mjs_plot(rnorm(10000)) %>%
  mjs_histogram(bins=30, bar_margin=1)
hrbrmstr commented 9 years ago

I totally missed this PR. Apologies.

yihui commented 9 years ago

No worries.