App Inventor Chart Components: Workflow Preview

Overview

Following up on the Chart prototypes, this post will focus on previewing the current progress on the Charts components in App Inventor.

This post will focus on the Components from the User perspective, meaning that implementation details will not be covered in this post.

Component previews

To complete the prototype and depict the idea of the Charts, the prototype was further extended to include Bar Charts and Pie Charts alongside Line Charts. Although the work for Bar and Pie Charts has been delayed to focus efforts and define the concepts on one type of Chart, they have been made to present to the developer team to give an idea of how they would look like.

Designer Bar Chart Preview Image Designer Pie Chart Preview Image
Bar Chart & Pie Chart in Designer
Designer Add Entry Blocks Preview
Designer Blocks example
Android Charts Preview
Android Charts preview

Chart workflow redefinition

In the last post, two prototype versions were shown. In fact, however, the idea was redefined slightly from the two proposed models. Together with the developer team, we have made the final decision to use a 2-component model, where a Chart could be added, and then Data would be attached to the Chart separately. However, a further decision was to simply allow to drag & drop Data components on a Chart, providing ease of use and setup when working with Charts. The image summarizes the idea:

Chart Data component drag & drop animation

Designer Chart component hierarchy
Note how the Chart Data components are attached to the Chart itself

Multiple Data components

With the drag & drop workflow implementation, naturally, the next step was to implement multiple Data component support in the Charts themselves. Each Data component can be manipulated individually, and they would then be updated in the Chart separately.

So if we add some entries into 3 attached Data components (following from the example of the previous section) using blocks, the Chart would look like this in the Android implementation:

Android multiple Data components

Data Properties

Two properties have been implemented for the Data components so far – the color and the label. These properties have also been made responsive in the Designer interface to provide visual feedback to the user on how the Data would look like.

Designer Data component property responsiveness animation

Android Chart Properties

Since the Charts are different in Android than in the browser, they require a different implementation. In Android, if we apply some data properties to our Line Chart, currently it will look as follows:

Android multiple Data Series properties example image

In the future, the Designer Chart components and the Android Chart components will be made to look more alike. But for now, the similarity is quite close.

Data Adding

Support has also been added to allow the User to quickly enter some data in a form field to add to the Chart. For now, this is quite basic, and only y-values can be specified, meaning that the first entered value will correspond to x value 1, the second to x value 2 and so on.

Designer Data entry animation

Stay tuned for more!

This has been a short preview of how the Chart components look and function so far to get a feeling of the general workflow of the Chart and Data components. A future blog post will follow describing some design choices and implementation details.

2019

App Inventor Chart Components: Pie Chart

16 minute read

Overview Last post, I have wrapped up the implemented methods for importing data to the Charts for the App Inventor Charts project that I have been working o...

MPAndroidChart Concentric Pie Charts

6 minute read

Problem While working with Charts in Android using the MPAndroidChart library, one inconsistency that I stumbled upon is the fact that all the Charts support...

App Inventor Chart Components: First Steps

6 minute read

Overview During the initial steps of the project to develop Chart Components for App Inventor, the major focus was on the design of the components such that ...

App Inventor GSoC 2019: Community Bonding

4 minute read

As the community bonding period is nearing to an end and the coding period is about to begin, I would like give a status update on what happened in the last ...

Welcome to my developer blog!

1 minute read

Introduction I am Evaldas Latoškinas, currently a first year Computer Science & Engineering international student in the Netherlands at TU Delft. Origina...

Back to Top ↑