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

Passing style properties in the expected format down to the Label and ValueList components from the TimeMarker component #409

Closed joshuaball closed 5 years ago

joshuaball commented 5 years ago

Hello,

Just a quick PR to address a styling bug I came across while using the tracker. The TimeMarker component passes the style property down to the Label and ValueList components in the the form of this.props.infoStyle.box. Each of those components are expecting a style.box property to style the resulting box portion of the tracker display. This was just a one-liner deletion from the TimeMarker.js file.

I mocked up an example of the fix using the "Scatter example" page. This can be discarded; just needed to illustrate the fix:

image