Skip to content

Width only accepts numbers #58

@apackeer

Description

@apackeer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions