Project

treemap21

0.0
No commit activity in last 3 years
No release in over 3 years
Treemapping gem which generates an HTML document.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.3, >= 1.3.1
~> 0.3, >= 0.3.5
 Project Readme

Treemap21: String input with a tree format

require 'treemap21'

s = "
Company 101 # 34 # http://a0.jamesrobertson.me.uk
Group A # 33 # #groupa
  Company 301 # 444 # #company301
  Company 401 # 200 # #company401
"

tm = Treemap21.new s, debug: true
puts tm.to_html
File.write '/tmp/treemap.html', tm.to_html
`chromium /tmp/treemap.html`

treemap treemap21 tree


Introducing the Treemap21 gem

Usage

require 'treemap21'

a = [['company 600', 20], ['company 100', 60], ['company 300', 10], ['company 550', 5], ['company 570', 5]]
tm = Treemap21.new a, debug: false

File.write '/tmp/treemap.html', tm.to_html
`chromium /tmp/treemap.html`

Resources

treemap treemap21 treemapping tree graph gem