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

Polygon Series #1751

Open
VisualMelon opened this issue Mar 13, 2021 · 3 comments · May be fixed by #2033
Open

Polygon Series #1751

VisualMelon opened this issue Mar 13, 2021 · 3 comments · May be fixed by #2033
Labels

Comments

@VisualMelon
Copy link
Contributor

VisualMelon commented Mar 13, 2021

A general purpose polygon series would be nice, the idea being to show multiple regions with an assigned 'value'. Each region comprises one or more polygons.

These are increasingly popular for showing metric data regarding geographic regions (e.g. GDP by country) even in the absence of a proper GIS context, and provide a nice way to implement non-regular (e.g. hex or non-axis-aligned) heat maps. (I long ago implemented a similar thing for a hexagonal heatmap for a cellular model, so that's the use-case from which I'm coming to this)

A basic implementation is at https://github.com/VisualMelon/oxyplot/tree/PolygonSeries

Open design issues:

  • Where should labels go?
  • What should the label formatter look like?
  • We should be able to attach a label to each poly (e.g. name of geographic region)
  • Should polys have a user-specified logical center? (e.g. for tracker snapping; this makes sense for e.g. non-regular heatmaps where the value is sampled at a particular point but represented over an area)
  • How can we support polys with holes in them?

Other:

  • Would be nice to have a geographical example, but I've not bothered to track down any open data

image

@VisualMelon
Copy link
Contributor Author

@Jonarw we seem to have mostly got through the outstanding PRs, so naturally I feel compelled to open some more. Worth providing a polygon series if we can come up with some sensible examples?

@Jonarw
Copy link
Member

Jonarw commented Aug 16, 2023

Sure, feel free to make a PR if you have time!
I might even have an example for a real-world application for this: Wafermaps with non-rectangular dies - I can see if I can find an example graphic tomorrow.

@VisualMelon VisualMelon linked a pull request Aug 16, 2023 that will close this issue
4 tasks
@Jonarw
Copy link
Member

Jonarw commented Aug 17, 2023

This is the kind of wafermap I was talking about:
image

This can of course be done using a ScatterSeries and custom markers (this is how this plot was created), but the correct Marker size is not immediately obvious - with a PolygonSeries this would be more straightforward.

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

Successfully merging a pull request may close this issue.

2 participants