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

add function that converts the chart data/series to a feature set #479

Open
tomwayson opened this issue Dec 15, 2020 · 1 comment
Open

Comments

@tomwayson
Copy link
Member

Proposed API:

const { fields, features } = chart.toFeatureSet();

We are doing something similar in the Hub to render a table as an alternative to the chart for a11y.

If there's broader interest, I could add it to cedar itself.

@tomwayson
Copy link
Member Author

tomwayson commented Dec 15, 2020

Hm... I guess a feature set doesn't always have fields and should at a minimum include the features and geometryType

https://developers.arcgis.com/documentation/common-data-types/featureset.htm

So maybe that's not the best name/concept for this since the thing that's tricky is converting the series() to fields and None of the features would have a geometry, much less a geometryType.

🤷‍♂️

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