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

define metricsgrahics-legend class via replacement rather than appending a suffix #42

Closed jjallaire closed 8 years ago

jjallaire commented 8 years ago

An upcoming change to htmlwidgets adds and "html-widget" class to all widget html containers. Previously the metricsgrahpics-legend class was establish by appending "-legend" to the current class however this resulted in a class of:

metricsgraphics html-widget-legend

This change modifies the class via string replacement, yielding:

metricsgraphics-legent html-widget
hrbrmstr commented 8 years ago

ty