Skip to content

X / Y axis center #138

Open
Open

Description

@si-harps

Hi, I was wondering if there is a quick way to position the X/Y Axis in the center of the graph (or in different positions based on dynamic median)?

This is essentially what i am trying to achieve...

screen shot 2018-09-27 at 10 45 52

Activity

  1. williaster commented on Sep 27, 2018

    @williaster
    Owner

    Hey @si-harps, thanks for checking out @data-ui. This isn't currently supported, but it's a great suggestion!

    I think it wouldn't be too hard to implement, I think we'd just need to update the Axis components to take some type of offset prop, specifying the value of the other axis to place it at (e.g., in your example, <YAxis xIntersection={7500} />. I'd welcome a PR for this, else will add it to the list and will try to tackle it with a offset bug fix sometime this week.

  2. si-harps commented on Sep 28, 2018

    @si-harps
    Author

    Hi @williaster, thanks for the quick reply. I'll take a look at this today. Adding an xIntersection/yIntersection prop sounds like a great idea. Will get back to you asap

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions