I'm all for being cute, but it shouldn't come at the cost of a basic understanding of what the program actually does and is useful for.
Spark
51–60 of 100 posts
Re: Spark
#52I'm curious: is there a reason U+2584 LOWER HALF BLOCK is missing from the character set, which otherwise contains the progression from U+2581 to U+2587? Edit: U+2588 seems like an obvious candidate as well.
No idea. Here they are for everyone's use: ticks = " ▁▂▃▄▅▆▇█" I've included SPACE as well. That's an obvious missing one.
Including the space character means that you lose a nice baseline if the input is fairly sparse, so it looks less like a bar graph and more like just some random blobs.
Re: Spark
#53What would be really interesting is finding out which decent programming fonts can show block elements. I mean, beyond the DejaVu Sans Mono fiasco.
You'll have difficulty on Windows if you use PuTTY, since it doesn't do font substitution.
Re: Spark
#54Re: Spark
#55Just did a Haskell version of spark. It supports in 9 lines of code (exclude comment + empty line) Double instead of just Int. Negative numbers. https://github.com/Mgccl/mgccl-haskell/blob/master/random/sp...
And here's a PowerShell version. (Use PowerShell ISE as PowerShell normal prompt doesn't support unicode). http://pastie.org/2867807 [edit: updated, careless variable rename, thanks jcromartie]
Re: Spark
#56⡠⠞⠉⠙⠦⣀⠴⠋⠉⠳⢄⡠⠞⠉⠙⠦⣀⠴⠋⠉⠳⢄
Re: Spark
#57Re: Spark
#58I've quickly looked at the link, read the reviews here, and there's actually no description of what spark _is_. I gather is an UTF-8 graph generator.
spark, the linked project, is just an implementation of a sparkline generator for the command line.
Re: Spark
#59I've quickly looked at the link, read the reviews here, and there's actually no description of what spark _is_. I gather is an UTF-8 graph generator.
Sparklines Wikipedia page: http://en.wikipedia.org/wiki/Sparkline spark, the linked project, is just an implementation of a sparkline generator for the command line.
Re: Spark
#60Earlier quoted context omitted.
Sparklines Wikipedia page: http://en.wikipedia.org/wiki/Sparkline spark, the linked project, is just an implementation of a sparkline generator for the command line.
Thanks! First time I've heard of "sparkline". Of course I've seen these items for as long as I can remember, but I just call them "graphs". :P
Not all graphs are created equal, it's important to use the right tool for the job. This tool isnt just a graph generator, it's a spark bar chart generator that's compact enough to fit in the command line. Overall a cool idea.