masukomi / heatmapper Goto Github PK
View Code? Open in Web Editor NEWa command line heatmap generator
License: Other
a command line heatmap generator
License: Other
The current heatmap shows a visual representation of "none" to "a lot" which is good for quantity / amount but not good for quality where it can be positive or negative.
so, this proposal is to allow 2 things
You'd want the positive and negative scales to be equal so i think just process all numbers as if positive to get the max and then use that on + & - sides.
any math calculations would have to be tweaked / have their input tweaked to not be borked by the negative numbers
You should be able to specify 2 heatmaps to use with this scale
Visually the 1st would be flipped, but under the covers it'd be the same. -100 is functionally equivalent to 100 it's just the "more" end of the scale. more bad / negative vs more good / positive.
we need a positive color map that's specifically good at pairing with a negative one. I'm thinking a pair like darkhub
+ a wistia
like variant that pairs better with it. (something orangey but with a low end that is closer to the dark of darkhub)
There would be a default negative heatmap. Simpler than dealing with "pairs" you just specify the scheme you want (or not) and, if you want to control the negative scheme you just specify --negative_scheme=xxx
In the example images you can see that the final column doesn't have enough values.
It's difficult for the caller to pre-calculate that to make it pretty because most of the time it will depend on window width. You need Columns x Rows values, and columns is, presumably going to be variable.
So, we should edit the populate-output-data
it should take the output-data
that it's about to return, and run it through a new function that checks that all the rows are the same length, and if not, fills in the remaining ones with an additional entry that consists of the 1st color of the chosen color scheme.
example:
cat random_numbers.txt | heatmapper --columns=4 --rows=1
that SHOULD result in 4 squares. (4 columns x 1 row) despite the fact that 100 items are being passed in.
rows does seem to be being honored.
the algorithm SHOULD just exit out of the loop once columns X rows squares have been populated.
It currently handles the problem of there not being enough data and padding it out to fill the remaining columns.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.