Skip to content

How you can reuse a chart component? #1

@GilbertMizrahi

Description

@GilbertMizrahi

First, thanks for putting this together (and the article).

My question is, let's say I have a number of dimensions that I want to display with a rowChart.
Thus, instead of creating a component for each one, I would like to create instances of a generic one.

How do I pass the data for each specific dimension?

I am thinking something like a props on the component on the dashboard.js
<DayOfWeekChart data="d.dd/>

I want to be able able to make a general purpose tool, so there could be another data source with the metadata for the "real" data source.

how you will pass the data to each instance of such component?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions