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

Adding mathematical function plotting #3632

Closed
laurentmorvillier opened this issue Sep 13, 2018 · 2 comments
Closed

Adding mathematical function plotting #3632

laurentmorvillier opened this issue Sep 13, 2018 · 2 comments

Comments

@laurentmorvillier
Copy link

It would be great to be able to draw a mathematical function, like y = x^2.
We could provide a function of the like:

func value(for x: Double) -> Double

I'm currently looking to remove another chart library from my project and this is the only missing piece!

@jjatie
Copy link
Collaborator

jjatie commented Sep 17, 2018

This is an interesting feature. At first glance it seems like it could be a relatively simple addition. You can have a custom DataSet type that you provide a function to, to generate entries. Only generate the ones that you need to display (plus a little overshoot).

@liuxuan30
Copy link
Member

or you have to stroke bezier curve, that will be tricky to draw something like y=x^2..

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

3 participants