Closed danse closed 7 years ago
first word of the title is the slug
$ exmargination-streamify margin.json
It would be nice to have it working from standard input if the file is not provided, because i might need preprocessing steps
$ exmargination-tags --first | exmargination-group --day | exmargination-streamify
exmargination-streamify
would internally accept data in the form [(String, Float, Date)]
. This could be the first visualisation supported by a new Vishnje https://github.com/danse/vishnje/issues/1
I imagine the following components:
vishnje
providing a lightweight frameworkstreamify
library that gets a [(String, Float, Date)]
and produces a stream graph using Vishnjeexmargination-streamify
that parses a Margin file and uses Streamify
This is the best starting point i found so far.
Since it is possible to have multiple tags on the same value, i should have a function to eliminate overlaps. This would be a function like
[(Value, [Tag])] -> [(Value, Tag)]
such that the sum of the input values is equal to the sum of the output values. The function should pick a tag, for example the tag with the biggest or smallest cumulated value before the function execution