Git Product home page Git Product logo

zeppelin-helium-spell-venn's Introduction

zeppelin-helium-spell-venn

Apache Zeppelin plugin DSL to describe Venn diagrams. This "spell" (a.k.a. parser) translates a simple description of sets into a table that the zeppelin-helium-d3-venn visualization will render as a Venn diagram.

The grammar is pretty simple: one per line, describe the size of a set of an intersection of sets. The Venn visualization will do the heavy work of figuring out cirles and their relative positioning and overlap.

Simple Example

%zeppelin-helium-spell-venn
A: 50
B: 25
A intersect B: 10
C: 60
A i C: 30
B ∩ C: 5
A i B ∩ C: 3

Note that there's three different ways to represent "intersection" in this DSL:

  • "intersect" as in A intersect B: 10
  • "i" as in A i B: 10
  • "∩" as in A ∩ B: 10

The numbers are unitless and describe relative set size.

Note that the Venn visualization assumes unlisted sets (including intersection sets) are size 0.

Translation to Table Data

The equivalent table has two columns: name and size. name can be any label, with the caveat that "i"/"intersect"/"∩" are interpreted specially as described above. For example, the equivalent table to the example Venn diagram text above would be:

%table
name\tsize
A\t50
B\t25
A intersect B\t10
C\t60
A i C\t30
B ∩ C\t5
A i B ∩ C\t3

zeppelin-helium-spell-venn's People

Contributors

bmaso avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.