Report question

Question: how to generate a graph/diagram like Google Analytics's Visitor Flow?