Sai,
Thank you for your analysis - I actually went your path as well. Also, sap.viz.api.data.CrosstableDataset (or actually sap.viz.api*) is not existing at all (see your first screenshot). All that confirms somehow my assumption that this is a bug (both in code and documentation). I even believe that this part of the code has not been touched for a long time and maybe it is just somewhat outdated. I would love to get some feedback here from the SAPUI5 team...
Best, Nabi