I created a custom report using the "All visits by page" Segment under the "By page" Dimension.
The results, however, have left me wondering; is there any way to access the code that generates the graph's data?
As Sitecore is not open source system, your best option would be to use .Net decompiler (e.g. ILSpy) to peek at the implementation. "By page" dimension is located in Sitecore.ExperienceAnalytics.Aggregation.dll.
Can any one knows How these values are calculated in sitecore from reporting database by combining the tables.(Need SQL query to get the values).
Page Views Visits Time on site Pages per visit Visits per person Bounce rate