In the 'update_graph' function, change 'fig'data' = df.iplot(asFigure=True, kind='scatter', mode='lines+markers', size=1)' to 'fig = df.iplot(asFigure=True, kind='scatter', mode='lines+markers', size=1)'. This is on line 92 in the App in Full section above. I need to update this article to reflect plotly's recent updates.
I'm having the same problem as Jason, when I load a file I get the data table, but the data is not displayed in the graph, and the following error is reproduced:
Invalid argument figure.data passed into Graph with ID "Mygraph".
Expected an array.
Was supplied type object.
I've also tried uploading different files, in case it was a problem with the file, but the same error is reproduced with all of them.
There may be an issue with the file you are trying to plot. Are you able to share the file with me (or similar data) so I can troubleshoot for you? Catch me at kyle@kyso.io
Yes, I received it - what I suspect is happening here is that there is a version issue for one of the libraries you have installed on your local machine, especially since the files are working just fine on the app running on Kyso. Because Kyso's workspaces run on homogenous docker images, you won't have the issue of an incompatible library or package version (I think) you are experiencing locally.
I run Kyso's docker image locally, which is likely why it's working for me.
I am having the same issue as yours where I do not get any error but the graph is not displaying, did you manage to fix the issue you had. Thanks in advance.
Comments
Hi,
I am facing the same issue, when I upload my excel file, I can see my data table but not the graph. Could anyone please help me this?
I am working out with a simple data as a start and my data looks like the below
A B C 1 2 3 2 4 4 5 4 6 6.666666667 5 8 8.666666667 6 9 10.66666667 7 0 12.66666667 8 8 14.66666667 9 7 16.66666667 0 6
Thanks in advance
After uploading a csv file , i got this error: "Invalid argument
figure.data
passed into Graph with ID "Mygraph". Expected an array"how can i solve this problem?
In the 'update_graph' function, change 'fig'data' = df.iplot(asFigure=True, kind='scatter', mode='lines+markers', size=1)' to 'fig = df.iplot(asFigure=True, kind='scatter', mode='lines+markers', size=1)'. This is on line 92 in the App in Full section above. I need to update this article to reflect plotly's recent updates.
I'm having the same problem as Jason, when I load a file I get the data table, but the data is not displayed in the graph, and the following error is reproduced: Invalid argument
figure.data
passed into Graph with ID "Mygraph". Expected an array. Was supplied typeobject
.I've also tried uploading different files, in case it was a problem with the file, but the same error is reproduced with all of them.
Are you trying on your own local machine or uploading your file to the app running on Kyso?
After I upload the file, I am getting this error:
Invalid argument
figure.data
passed into Graph with ID "Mygraph". Expected an array. Was supplied typeobject
..
There may be an issue with the file you are trying to plot. Are you able to share the file with me (or similar data) so I can troubleshoot for you? Catch me at kyle@kyso.io
Did you receive the file i send to you?
Also, I'd remove all columns except for reading_value - otherwise you're plotting strings with your numeric values.
Yes, I received it - what I suspect is happening here is that there is a version issue for one of the libraries you have installed on your local machine, especially since the files are working just fine on the app running on Kyso. Because Kyso's workspaces run on homogenous docker images, you won't have the issue of an incompatible library or package version (I think) you are experiencing locally.
I run Kyso's docker image locally, which is likely why it's working for me.
Well now don't have the error anymore after I upload the file but the graph is empty.
With the same file you sent me?
Yes and the link of live version on the top of this page I also can't access. The page is blank when I click the link.
Hi Jason,
I am having the same issue as yours where I do not get any error but the graph is not displaying, did you manage to fix the issue you had. Thanks in advance.