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 useful derive traits #86

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

LukaOber
Copy link
Collaborator

@LukaOber LukaOber commented Oct 4, 2024

Added normal useful traits on Chart and all affected parts that needed it. Deriving these useful traits makes it a lot easier to work with charming in a more dynamic context like wasm. Deriving these traits has no downside but we should try our best to not remove them in the future, but with most of the functionality already implemented I think this won't be a problem.

We are unable to derive PartialOrd on Chart because we can not derive PartialOrd on GeoMapOpt. GeoMapOpt contains the type serde_json::Value which does not implement PartialOrd. I don't know how we would go about circumventing that but I also don't think users of the library expect or need PartialOrd on the complete Chart. If a user needs PartialOrd on Chart we can look at that again.

i will rebase this PR after we merge #85 and #77.
This PR will close these issues: fix #27, fix #35, fix #41
Implements some parts of #58

Copy link
Owner

@yuankunzhang yuankunzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@yuankunzhang yuankunzhang merged commit e837024 into yuankunzhang:main Oct 7, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

impl Clone on everything Could Echart be Clone? [feature request] Derive some useful traits
2 participants