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

Linked Charts with Multiple Lines #52

Open jdbarillas opened 7 years ago

jdbarillas commented 7 years ago

Linked Charts with multiple lines seem to not be working.

I tried replicating the example found at the bottom of http://hrbrmstr.github.io/metricsgraphics/ to no success.

The only way to make it work is if I change the variable name of X to value and only use one line. Even then I lose the actual value and encounter the same issue as #51.

The examples for other types of graphs still work, as in here and here.

My session info:

R version 3.3.3 (2017-03-06)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
metricsgraphics_0.9.1
gordonwoodhull commented 7 years ago

The linking works on the example page

http://hrbrmstr.github.io/metricsgraphics/#linked-charts

but not when I install metricsgraphics 0.9.1 in either RCloud or RStudio

Also, the legend and other styling looks different, so I suspect this is a version mismatch. Is this feature still on a feature branch?

On the example page:

image

0.9.1 in an RStudio Notebook: image

(It looks the same in RCloud)

I also tried master but it's the same as 0.9.1.