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

Plot two lines with different x and y values on the same chart #260

Open
harshit-khandelwal-pi opened this issue May 8, 2024 · 0 comments

Comments

@harshit-khandelwal-pi
Copy link

harshit-khandelwal-pi commented May 8, 2024

Question

Is there a way to plot two lines with different x and y values on the same chart?

Background Info/Attempts

const o1 = { x: [0, 2, 3, 5, 20], y: [10, 15, 20, 25, 30] };
const o2 = { x: [0, 3, 4, 6, 7], y: [5, 10, 15, 20, 25] };

I can keep the domain as [0,20]

I have these above two objects for which I want to plot two separate lines in the same chart. Is there a way I can do this?

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