Skip to main content

Word Venn Diagram

A venn diagram visualizing co-occurrence of words in documents of a supplied term-document matrix.


  • height | number: height of the Venn diagram in pixels. Default: 350.
  • nTexts | number (required): number of sources from which text was gathered. Default: none.
  • onClick | function: callback for what is to be done when "Draw Venn Diagram" is clicked. Default: onClick() {}.
  • tdm | array (required): array that is to represent a term document matrix. Default: none.
  • vocabulary | array (required): array in the order of the tdm array passed so that the indices may be matches to their words. Default: none.
  • width | number: width of the Venn diagram in pixels. Default: 600.


Live Editor
Last updated on by Planeshifter