Posted 21 September 2021, 3:38 am EST
Is it possible to use more than one dataset for a chart? I am trying to figure out if is possible to use my existing application data for a chart in a report but have not been able to figure it out when all of the data is not contained within a single dataset. I am able to get this to work if I reformat my data into a single dataset for each chart but that is much more verbose so I am trying to avoid that if possible.
Example Data 1 (1 array of labels, 1 array of values):
{
“results”: {
“labels”: [“one”, “two”, “three”],
“values”: [10, 20, 30]
}
}
Example Data 2: (1 array of labels, 1 array of objects)
{
“results”: {
labels: [“one”, “two”, “three”],
items: [
{
“description”: “Item 1”,
“values”: [10, 20, 30]
},
{
“description”: “Item 2”,
“values”: [13, 23, 33]
},
{
“description”: “Item 3”,
“values”: [16, 26, 36]
}
]
}
}