mit-cml / appinventor-sources

MIT App Inventor Public Open Source
http://appinventor.mit.edu/appinventor-sources/
Apache License 2.0
1.49k stars 2.08k forks source link

Charts Causes App to Crash When Reading from Spreadsheet with Scatterplot On #2774

Open bobparks opened 1 year ago

bobparks commented 1 year ago

The app should read data into the Chart component from this spreadsheet.

When you set the Chart component to "scatter" type chart, the app crashes. It crashes whether live testing or packaged as an app.

This is problematic because many types of data (such as the lake ice example here) are properly visualized by a scatterplot. In this example, a line graph for the ice data doesn't make sense.

In contrast, when you set the Chart component to "line" type and press "Get Data" in the app, it works fine.

Affects

Expected behavior

The Chart should fill with data with scatterplot points. To see how it looks as a line graph in the attached AIA, change the properties in the chart component with the attached AIA.

Steps to reproduce

To see this happen, load one of the two enclosed AIA and press the "Get Data" button. There are two ways of retrieving spreadsheet data into chart, so I have included both variations (both will crash with scatterplot data).

Spreadsheet_to_Chart_starter.zip Spreadsheet_to_Chart_starter_test.zip

dhruvpatidar359 commented 1 year ago

is this issue solved , or i can work on this ?

ewpatton commented 1 year ago

@dhruvpatidar359 I believe this is fixed on the test server I set up. @bobparks can you confirm?

bobparks commented 1 year ago

@ewpatton Yes, it works well now. @dhruvpatidar359 Thanks for checking.