Skip to content

Feature Request: prop for pop-up card #18

Description

@awatson1978

Current designs call for a pop-up or overlay card, that can inspect contents of a data point on hGraph.

Screen Shot 2020-12-08 at 11 53 01 AM

It would be ideal to be able to feed in an external React component via a prop. Possible API might look like the following:

          <HGraph
            data={ data.currentData }
            width={ graphSize }
            height={ graphSize }
            healthyRangeFillColor={themePrimaryColor}
            showScore={ false }
            margin={{ top: 140, right: 72, bottom: 140, left: 72 }}      
            popUpPosition={['bottom', 'right']} // auto?
            popUpComponent={<SimplePopUp theme="dark" />}
          /> 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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