I would like to use BubbleChart for data in the form of {{4,1,3,7},{0,9,1,1},...}. I would like the color of each bubble to indicate the fourth data piece. For instance, the data above would produce two bubbles, one at (4,3) with a radius relative to 3 and a color relative to 7, and the other bubble at (0,9) with a smaller radius and a color closer to 0 on a gradient.
The docs include a section in BubbleChart subtitled "Use metadata passed on from the input, in this case charting the data" that seems to indicate that this sort of thing is possible. However, I can't seem to figure out what is going on in this example. The doc example works, but unless I can figure it out, I can't bend it to my own purpose. Here is what the docs have:
DataDrilldownBubble[{{xmin_, xmax_}, {ymin_, ymax_}}, v_, {meta_}, style___] := PopupWindow[Polygon[{{xmin, ymin}, {xmax, ymax}, {xmin, ymax}, {xmax, ymin}}], PieChart[meta]];
DataDrilldownBubble[{{xmin_, xmax_}, {ymin_, ymax_}}, y_, ___] := Rectangle[{xmin, ymin}, {xmax, ymax}];
BubbleChart[{{1, 0, 1} -> Range[5], {0, 1, 2}, {1, 2, 3} -> RandomReal[1, 10]}, ChartElementFunction -> DataDrilldownBubble]
Can anyone please explain to me what is going on in this example, or possibly suggest how I might accomplish my goal?
Thanks in advance,
Mark Greenberg