Higashi Kota
06/03/2023, 3:12 AMJan Rehanek
06/03/2023, 3:08 PMHigashi Kota
06/04/2023, 12:49 AMHigashi Kota
06/04/2023, 3:37 AMJan Rehanek
06/05/2023, 7:47 AMconst UseInsightDataViewExample: React.FC = () => {
const { result, error, status } = useInsightDataView({ insight: idRef(Md.Insights.PieChart) });
const series = result?.data().series().toArray();
const slices = result?.data().slices().toArray();
There’s various objects returned here and it is possible to retrieve the attribute labels from them. I am not 100% sure if this is the best way to do it, so I will ask and let you know.Jan Rehanek
06/05/2023, 1:29 PMconst slices = result?.data().slices().toArray();