solved nested data issue with grouped data legend tooltip