react-sparklines icon indicating copy to clipboard operation
react-sparklines copied to clipboard

"mean" reference line doesn't seem to line up properly

Open codingarmadillo opened this issue 8 years ago • 3 comments

I created a sparkline with constant values (e.g. [10, 10, 10, 10, 10]. When adding a "mean" reference line, it displays a few pixels under the trend line. Clearly, in this case, it should be directly on it.

codingarmadillo avatar Nov 16 '16 19:11 codingarmadillo

Are you using the margin prop on the reference line?

markov00 avatar Dec 19 '16 10:12 markov00

@codingarmadillo Do you still have this issue?

borisyankov avatar Jan 20 '17 02:01 borisyankov

I was able to find a workaround. Thanks.

codingarmadillo avatar Feb 07 '17 16:02 codingarmadillo