Here is the screenshot
try to retrive all the list of data of particular entity and associate that data to a attribute and return that attribute at the end of DS flow and add that ds flow for that data view and place the chart inside dataview and configure the returning attribute in the chart proproties.
Hope this helps.
I am just giving an example. In my case, I am trying show student name along with their exam result.
Create 1 non persistable entity for barchart. In my case, I have named it as BarChart.
In your page, Add dataview widget and select the Barchart entity.
Inside dataview, add bar chart widget.
In chart properties, I know that my data is from database and it is static. So I am defining my data like this
X- Axis will take Marks whereas Y axis will take student names.
I have defined my data series like this
Pass student data:
Similarly I have defined it for Fail result as well.
Final Result will be like this