Bar Graph Visualization

Jan 15, 2013 at 7:13pm

Bar Graph Visualization

HI Community,

I’m trying to build a what I imagined would be a simple patch. The idea was to tally votes for several different “options” of a live audience and create a dynamic bar graph representing the results as they come in. So far, I’ve been focusing on using gl gridshapes and figured I would scale my shapes to show growth in the vote count, but scaling increases along an axis in both directions. Has anyone done something like this before? The logic of the vote tally seems easy enough – the animation is the element that I’m stuck on. i’ll paste the development patch below, but it’s REALLY messy.

Thanks!

#66086
Jan 15, 2013 at 10:11pm

it’s messy yes, but it’s just because it’s the gridshape helpfile copied around a bit.

the @scale argument can have multiple values, so that’s good.
Here’s a quick solution to give you some inspiration – what I simply did was offset the position by the scale value, which will then tie one end down, so to speak:

– Pasted Max Patch, click to expand. –
#237944
Jan 16, 2013 at 7:28pm

Thanks, Wetterberg! I knew it must be possible!

#237945

You must be logged in to reply to this topic.