Questions tagged [treemaps]

24 questions
9
votes
2 answers

Python graph like windirstat?

I'm interested in using python to make diagrams representing the size of values based on the size of squares (and optionally their colour). Basically I'm looking for a way to make overviews of a bunch of values like the good old program windirstat…
Alex S
  • 4,726
  • 7
  • 39
  • 67
6
votes
2 answers

Highcharts - How to remove connecting line between fixed tooltip and point

We've just updated to the latest Highcharts version and now a few of our chart types have a new line connecting the tooltip to the point. It's mainly obvious on charts with fixed tooltips. Does anyone know how to remove this line without removing…
Matt Scott
  • 252
  • 2
  • 15
6
votes
0 answers

plotting a tree-map in python with area of rectangle representing value and color the label

I want to visualize my data using a tree-map. I have a dictionary with keys and values. How can I do it in python with the area of block representing the value and color representing the key/label. I saw a similar question here. But the link…
user168983
  • 822
  • 2
  • 10
  • 27
5
votes
2 answers

How to sort Guava's MultiMap only by keys?

I have MultiMap from Guava library. I want to sort it only by keys. I have tried: Multimap sortedMultiMap = TreeMultimap.create(Ordering.from(new Comparator() { @Override public int compare(String lhs,…
Lester
  • 2,544
  • 4
  • 27
  • 38
4
votes
3 answers

How do I add multiple values to the same key in a TreeMap?

My tree Map is Map restrMap = new TreeMap(); While adding the below two value to the treeMap, it only shows one. The second value, when comes updates the first one. 6, 8.00 6, 5.00 How can I add two values for the…
Shubham Ranka
  • 41
  • 1
  • 2
2
votes
7 answers

How can I make voronoi treemaps?

I want to make voronoi treemaps for statistics data, like newsgraphy Do you know how I can do that in Perl, PHP, Ruby, or Python?
freddiefujiwara
  • 57,041
  • 28
  • 76
  • 106
2
votes
2 answers

Java - Swapping Values and Keys in one Map?

I am making an encrypt and decrypt program for my programming class, however I am a year ahead of the group so I thought I'd simplify things by using what I learned last year. I decided to use a Tree Map. What the program does is it takes in a file,…
Samich
  • 579
  • 4
  • 13
1
vote
2 answers

Java TreeMap within TreeMap - Identifier error?

This works fine: TreeMap x_probs_org = new TreeMap(); But this: TreeMap > x_probs = new >(); causes the following error: error:
user961627
  • 12,379
  • 42
  • 136
  • 210
1
vote
2 answers

TreeMap getting exception "fromKey > toKey" (fromKey is greater than toKey?)

I've stored following xml attribute into HashMap extraParams = new HashMap()
Swapnil Kotwal
  • 5,418
  • 6
  • 48
  • 92
1
vote
2 answers

Java: Replace in TreeMap

I have a Treemap: TreeMap map = new TreeMap(); It counts words that are put in, for example if I insert: "Hi hello hi" It prints: {Hi=2, Hello=1} I want to replace that "," with a "\n", but I did not understand…
JavaCoder
  • 49
  • 4
1
vote
1 answer

How do you create a treemap in D3 with custome colors

Does anyone know how to create custom colors on a d3 treemap without using color2 = d3.scale.category20c(); or d3.scale.category10c();? Thanks so much if you do.
Mr. Concolato
  • 2,224
  • 5
  • 24
  • 44
1
vote
1 answer

tree maps using actionscript

can any body help me?? i have a task to make a tree map with actionscript 3.0 and using the rectangle packing algorithm!!! can anybody help me,,i cant find a resourse to teach me how to do this,,i only know what is a tree map and i know…
ss.
  • 11
  • 3
0
votes
2 answers

Converting Treemap keys and values to array

I need to convert a TreeMap to an array; could anyone show me how it's done? I need both keys and values.I am mapping each word to its frequency in a text file Here is output : Bypass Internet Censorship.txt {about=1, administrators=1, ago=1,…
sum2000
  • 1,363
  • 5
  • 21
  • 36
0
votes
3 answers

How do I create nested TreeMaps?

This is somewhat related to my previous question but I've realised that I needed to deal with the issue of nesting earlier in the problem, so here's where I am. (I'm also not far off being a beginner in Java, so please bear with me). I'm creating a…
melat0nin
  • 860
  • 1
  • 16
  • 37
0
votes
2 answers

Using sets and maps to read text files

As part of my HOMEWORK, I am trying to read a file made up of car models and output the total of each to the console. I have achieved this so far by using a Map with the model name as the key and the counter as the value. Although, now I want to…
1
2