RandomFractals / venn-diagram-generator

we do it for #dataSci tech lulz :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

venn-diagram-generator

we do it for #dataSci tech lulz :)

Venn Diagrams generator MVP demo on the web:

https://venn-diagrams.herokuapp.com/

alt tag

VueJS CodePen

If you are looking for a vuejs quickie of this viz, I got you! :)

See this codepen: https://codepen.io/TarasNovak/full/prZmqY

alt tag

basic Venn Diagram Designer UX Sketch Idea

alt tag

Synopsis

The idea for this Venn diagram pics generator project came from sourcing a number of ineteresting posts from the data science community: new data scientist position posted, articles shared on medium, kdnuggets or elsewhere, and heavy use and abuse of Venn Diagrams pics for that purpose.

As a data viz specialist and practitioner, I've had it! A few other creative types decided if we can't beat them, we should join them, and create one stop shop app for you to gen those Venn Diagrams about what you fancy, and what unicorn intersection you are trying to find FTW.

Thus, the Venn Diagram generator idea was born:

https://twitter.com/dataandme/status/848850426095120384

alt tag

Ultimate Project Goal

Ideally, we'd like to create an app for you to gen Venn Diagrams like this:

https://twitter.com/BourseetTrading/status/848192200789942272

alt tag

or how to make your pancakes:

https://twitter.com/MrBenWard/status/836489614676353024

alt tag

How we got here:

Best bg story on how we ended up here is on kdnuggets:

http://www.kdnuggets.com/2016/10/battle-data-science-venn-diagrams.html

Also get to know 42 V's of data science. Fun read:

http://www.kdnuggets.com/2017/04/42-vs-big-data-data-science.html

Side Project Goal

Demonstrate custom Angular 4, SVG, and Material UI CSS mini-app setup best practices from start to finish with micro commits in a few days or so.

App Dev Status

day 1: Angular 4 App Scaffolding + basic Topic list UI prototype:

alt tag

Also, the boilerplate angular4 jasmine tests are still passing. It's a good sign. I'll double down on that part for the topic list view model type in day 2 of dev. One must have tests! for good karma and all :)

alt tag

day 2 of dev: Inline Topic editor UI prototype:

  • ✓ add delete topic option
  • ✓ add move topic up/down options for reordering diagram topics
  • ✓ add inline topic name editor
  • ✓ add diagram view model topic list updates tests

alt tag

alt tag

day 3 of dev: Custom Material UI app CSS setup

  • ✓ add custom responsive material UI CSS setup for the app title bar, view content/cards, footer, etc.
  • ✓ add inline diagram name/title editor functionality

alt tag

day 4 of dev (6/27/2017):

  • ✓ split monolithic Angular 4 prototype app component into separate app header/footer, topic list, and actual venn diagram components
  • ✓ set up a half ass decent 2 cols layot for topic list and diagram view comp.

day 5 of dev

Latest with Augury:

alt tag

Blank app canvas for that Venn D SVG render:)

alt tag

7-5-2017: Still lots todo :)

alt tag

7-6-2017: Latest with funky colors and some app UI tips on heroku: https://venn-diagrams.herokuapp.com/

alt tag

...

7-10-2017: MVP Alpha v with ellipses layout and mandatory pancakes test :)

alt tag

I'll add random circles/ellipses layout just for fun next.

App Build/Run Instructions

This project was generated with Angular CLI version 1.0.1.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/.

The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component.

You can also use ng generate directive|pipe|service|class|module.

Build

Run ng build to build the project.

Build artifacts will be stored in the dist/ directory.

Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Before running the tests make sure you are serving the app via ng serve.

Further help

To get more help on the Angular CLI use ng help

or see Angular CLI README (https://github.com/angular/angular-cli/blob/master/README.md).

Yarn Note

Run ng set --global packageManager=yarn to use Yarn package manager

References

A bunch of good tech reads I used for building this mini-app.

Angular 4

  • Good writeup on #angular 4 comps comms via Input/Output, beyond simple string msg passing example :)

https://www.infoq.com/articles/angular-component-communication

  • For a more robust solution via RJXS Observable Service see:

http://mean.expert/2016/05/21/angular-2-component-communication/

  • How to deploy Angular 4 web app with Express to heroku:

https://medium.com/@ervib/deploy-angular-4-app-with-express-to-heroku-6113146915ca

CSS Tips and Tricks

  • Decent no frills responsive html5/css3 2 cols layout setup for desktop and mobile browsers:

https://www.smashingmagazine.com/2017/06/building-production-ready-css-grid-layout/

  • How to vertically align inline-blocks (used for stroke/fill color boxes setup):

https://codepen.io/edge0703/pen/iHJuAf

SVG code blocks

  • Placing SVG elements around a circle d3 code block:

http://bl.ocks.org/bycoffe/3404776

  • How to Export SVG d3 data viz to Png or Jpeg:

http://bl.ocks.org/Rokotyan/0556f8facbaf344507cdc45dc3622177

Venn Diagrams Links

  • Exact and Approximate Area-proportinal Circular Venn and Euler Diagrams whitepaper:

https://www.cs.uic.edu/~wilkinson/Publications/venneuler.pdf

  • All you can eat DataScience VennDiagrams on Bing for this proj. research reference:

https://www.bing.com/images/search?q=data+science+venn+diagram&FORM=IGRE

About

we do it for #dataSci tech lulz :)

License:Apache License 2.0


Languages

Language:TypeScript 64.8%Language:HTML 16.9%Language:CSS 12.4%Language:JavaScript 5.9%