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

Feature request: support x array and y array input data #18

Open
Benjamin-Lee opened this issue Dec 9, 2020 · 1 comment
Open

Feature request: support x array and y array input data #18

Benjamin-Lee opened this issue Dec 9, 2020 · 1 comment
Assignees

Comments

@Benjamin-Lee
Copy link

I'm using Plotly and have formatted my tooling to generate data formatted like this:

var trace1 = {
  x: [1, 2, 3, 4],
  y: [10, 15, 13, 17],
  mode: 'markers',
  type: 'scatter'
};

var trace2 = {
  x: [2, 3, 4, 5],
  y: [16, 5, 11, 9],
  mode: 'lines',
  type: 'scatter'
};

var trace3 = {
  x: [1, 2, 3, 4],
  y: [12, 9, 15, 12],
  mode: 'lines+markers',
  type: 'scatter'
};

var data = [trace1, trace2, trace3];

Plotly.newPlot('myDiv', data);

Since there's a lot of data (the reason I'm downsampling in the first place!) changing data shapes twice would be a big overhead unless there's an efficient way I'm missing.

@janjakubnanista
Copy link
Owner

Hi @Benjamin-Lee! Thank you for your feature request! I will keep you posted on progress on this, I think it's quite simple to implement. Talk soon!

@janjakubnanista janjakubnanista self-assigned this Dec 10, 2020
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

2 participants