Skip to content

TODO: Be able to specify and render just one or two quadrants instead of the four #2

@mithi

Description

@mithi

Currently, when we specify the x-range the y-range of the container the default plot would be like so:

                  yRange/2
                     | 
               Q2    |      Q1
  -xRange/2 -------(0,0)--------- xRange/2
               Q3    |      Q4
                     |    
                 -yRange/2

Sometimes we only need one of the following

  • Q1
  • Q2
  • Q3
  • Q4
  • Q1 + Q2
  • Q3 + Q4
  • Q1 + Q4
  • Q2 + Q3
  • Q1 + Q2 + Q3 + Q4

We should be able to specify, so that we don't waste space in the screen that don't have markers.
I'm thinking the API would be something like:

const container = { xRange, yRange, color, opacity, quadrants }

Where quadrant is a string that could contain "Q12", "Q3", "Q1234" etc

We have to change this part

transformX = (x) => x + this.xRange / 2
transformY = (y) => this.yRange / 2 - y

to not be hard coded and be generic

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions