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

Width only accepts numbers

Open apackeer opened this issue 10 years ago • 0 comments

Hi,

I use width set to 100% when I use raw sparklines in jQuery like

            $(".sparkline").sparkline([20, 34, 43, 43, 35, 44, 32, 44, 52, 45], {
                type: 'line',
                lineColor: '#FFFFFF',
                lineWidth: 3,
                fillColor: '#404652',
                height: 47,
                width: '100%'
            });

I love your react component, but you are only accepting only React.PropTypes.number for the width attribute in the component. At the moment if i don't set width it defaults to 240px. Is it possible to accept percentage values?

apackeer avatar May 27 '16 11:05 apackeer