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

[Feature Request] Support BoxPlot Chart #1734

Open
markmssd opened this issue Oct 4, 2024 · 0 comments
Open

[Feature Request] Support BoxPlot Chart #1734

markmssd opened this issue Oct 4, 2024 · 0 comments

Comments

@markmssd
Copy link

markmssd commented Oct 4, 2024

Feature request summary

A Box Plot is useful to show distribution of one of more points of data. Here's a good explanation of it: https://www.atlassian.com/data/charts/box-plot-complete-guide#:~:text=A%20box%20plot%20(aka%20box,line%20marking%20the%20median%20value.

Image

I am still unsure of the best API to use it. Should each data group be an array of points, and the lib calculates the median, quartiles, min, and max, or should the user precalculate the and provide them 🤔

This kind of chart will have a different type than the others. It would have a key, but the value would be more complex:

{
  key: number | string;
  value: {
    median: number;
    lowerQuartilze: number;
    upperQuartilze: number;
    min?: number;
    max?: number;
  }
}

or

{
  key: number | string;
  value: DataPoint[];
  metadata: {
    hideMinMax?: boolean;
  }
}

I think the second way is better, because D3 already provides methods to calculate median and quartiles.

Either way, we should make the min/max optional

Rationale

There is currently no way with Polariz for Box Plot charts. If that makes sense, I am willing to open a PR for it.


🌟 Feature requests that are not yet planned will be closed. We then use the issue’s 👍 upvotes to track and set priorities. See the contribution guidelines for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant