i tried this way but it's not working... i placed this code in the onVisible of the screen
ClearCollect(
mostFollowedCourses,AddColumns(
GroupBy(
usersGoestoCoursesTable,
"courseID",
"partecipants"
),
"usersCount",
CountRows(partecipants)
))
and in my chart Items i have this
FirstN(SortByColumns(mostFollowedCourses, "usersCount",SortOrder.Descending),5)
it actually shows me the correct chart. but i cannot find out how to show the correct legend.
the legend should show me the name of the courses...