You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
renderSVG(moreProps){//...constpoints=helper(this.props,moreProps,xAccessor);return<gclassName={className}>{points.map((point,idx)=>{// `point` contains stroke and fill with already applied function call// and markerProps still contain possible functorsconst{marker: Marker}=point;// <-- stroke, fill are ignored herereturn<Markerkey={idx}{...markerProps}point={point}/>;//// using this way - `<circle>` marker will get stroke===functor ((d)=>...), which is error.})}</g>;}
Problem appears when you call Scatter Series this way:
Stroke (and fill) functors are applied to datums here:
https://github.com/rrag/react-stockcharts/blob/master/src/lib/series/ScatterSeries.js#L80
and here it is forgotten: https://github.com/rrag/react-stockcharts/blob/master/src/lib/series/ScatterSeries.js#L34
So the solutions will be next:
The text was updated successfully, but these errors were encountered: