Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Props.colors.domain prevents custom colors #105

@tgoldenberg

Description

@tgoldenberg

<AreaChart /> expects colors as a prop. The default is from d3, and the type is function. However, this line makes it difficult to add custom colors for this component:

/* AreaChart.js */
props.colors.domain(seriesNames);

Could there be a check / guard so that custom colors can be used on this component? Thank you.

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