FLOE-412: Connect the data entry form and the pie chart

Metadata

Source
FLOE-412
Type
Task
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Alan Harnum
Reporter
Cindy Li
Created
2015-08-21T14:11:08.200-0400
Updated
2015-10-07T09:54:24.593-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Chart Authoring Tool

Description

The data structure of data entries from the data entry form is:
{
"dataEntry-uuid1": {
value: number,
percentage: number,
label: string
},
"dataEntry-uuid2": {
...
},
...
}

The data set structure required to draw pie chart is:
[{
id: "dataEntry-uuid1",
value: number,
label: string
}, {
id: "dataEntry-uuid2",
....
}, ....]

To connect these two pieces, a model relay is needed for the data conversion.

Comments