Metadata
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
-
Cindy Li commented
2015-10-02T12:48:06.382-0400 The pull request https://github.com/fluid-project/chartAuthoring/pull/7 has been merged into the master @ df106a8f9d353d9829d6d58b5d18b2e218bd24c9