Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColorConfigSelect component to select between fixed color or gradient #375

Open
targos opened this issue Nov 17, 2022 · 1 comment
Open

Comments

@targos
Copy link
Member

targos commented Nov 17, 2022

Behavior:

  • Select element to choose between "Fixed" or "Gradient" color
  • When "Fixed": just select the color with a ColorPickerDropdown
  • When "Gradient":
    • Select the color with a GradientSelect
    • Select the data variable with a MeasurementVariableSelect

Props:

interface ColorConfigSelectProps {
  color: ColorConfig;
  onChange: (color: ColorConfig) => void;
  variables: MeasurementVariableOptions[];
}

We will need to add the variable's id to the ColorConfig type for gradient.

Depends on:

@targos
Copy link
Member Author

targos commented Dec 2, 2022

This is blocked on react-plot currently not supporting variable colors in line series.

@targos targos removed the BIG-MAP label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants