Update diagram docs.
Fix dataviz typescript errors