Skip to content

passing in custom value to reference line is not working as expectedΒ #121

@austinyearlykim

Description

@austinyearlykim

I have a linear data set going from [1, ...6]. Passing in 1 as a value to the SparklinesReferenceLine I would expect the reference line to be at the bottom of my screenshot below, but no matter what value I pass in, it seems to want to just stay around the 4,5,6 range.

const data = [1,2,3,4,5,6];
export default (props) => {
    return (
                <Sparklines data={data}>
                    <SparklinesLine />
                    <SparklinesReferenceLine type='custom' value={1} />
                </Sparklines>
    );
}

screen shot 2018-09-02 at 1 01 01 pm

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