chart visualizer entire directive logic updated to support array of arrays