Hi guys,
I need guidance on applying the dataset to create a stacked column chart in outsystems.
How should i prepare my datasets ? Please help me on this.
Thank you.
Hi @Wee Yaw Pui ,
Dorine
Hi @Wee Yaw Pui,OutSystems has a dedicated page to help you out with charts:https://charts.outsystems.com/components/chart-types/column-chart To help you further on how to structure your data. The column chart requires a datapoint list which has the following structure:- Value (Decimal) Mandatory - The value to be plotted.- Label (Text) Mandatory - The label of the data point.- SeriesName (Text) - The name of the series where the data point belongs.- Color (Text) - The color of the data point.The example given on the link that i shared will have something similar as below:
[
{ "SeriesName": "Series 1", "Label": "Marketing", "Value": 142, "Color": "", "Tooltip": "" },
{ "SeriesName": "Series 1", "Label": "Finance", "Value": 170, "Color": "", "Tooltip": "" },
{ "SeriesName": "Series 1", "Label": "IT", "Value": 185, "Color": "", "Tooltip": "" },
{ "SeriesName": "Series 1", "Label": "Human Resources", "Value": 172, "Color": "", "Tooltip": "" },
{ "SeriesName": "Series 1", "Label": "Sales", "Value": 195, "Color": "", "Tooltip": "" },
{ "SeriesName": "Series 2", "Label": "Marketing", "Value": 122, "Color": "", "Tooltip": "" },
....
]Hope this helps!Greetings,Melvin