esnet / react-timeseries-charts

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

use correct form of infoStyle in defaultProps #426

Closed natejenkins closed 2 years ago

natejenkins commented 4 years ago

EventMarker is currently not passing in the correct form to the Label component. The latter expects an object which includes a labelStyle and a boxStyle (see https://github.com/esnet/react-timeseries-charts/blob/master/src/components/Label.js#L56). The infoStyle that I've added reflects the current styling of labels in EventMarker and does not correspond to what is currently seen in the docs.