In some cases you have to set filter that hides parent tasks for correct display of task analytic data. The thing is that Task Analytics Pivot Grid and Task Analytics Chart sum up duration of all tasks regardless of their hierarchy.
For example, in the Tasks view task duration is automatically calculated as the summary of its subtasks duration, while in the Task Analytics view task duration is added to subtasks duration.
For setting filter in the Task Analytics and Task Analytics Chart views: