esnet / react-timeseries-charts

Declarative and modular timeseries charting components for React
http://software.es.net/react-timeseries-charts
Other
861 stars 284 forks source link

pass box/label styles thru to ValueList/Label #403

Closed brandly closed 5 years ago

brandly commented 5 years ago

without this patch, you can't style the box/label via ChartContainer's trackerStyle prop.

with the way mergeStyles works in both ValueList and Label, the style prop expects both a box and label key. instead, ChartContainer's style.box was getting passed thru directly as `style.

i think documentation and defaultProps need updated in a few places still.