![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
On 2013-10-23 22:40, Paul Gear wrote:
On 10/23/2013 11:09 PM, Andreas RĂ¼del wrote: Greetings
Is there a way we can create "aggregated" (or "stacked") mini-/micrographs for the frontpage? using this syntax
$config['frontpage']['minigraphs']['ids'] = "19418,port_bits,Dist76-01.AMS4;19496,port_bits,NAME"; or this: $config['frontpage']['micrographs']['RING']['ids'] = "19414,port_bits,NAME;19492,port_bits,NAME2;19439,port_bits,NAME3";
results in several graphs next to each other.
what we are after is in "mini" or "micro" what we can do it using "custom" traffic graphs - but they are too big for what we are trying to do...
$config['frontpage']['custom_traffic']['ids'] = "19418,19496"; <-- this actually stacks the data into one graph
I made the micrographs patch and did some tweaks on the minigraphs at the same time. I'm happy to work on a patch for you if you can explain it a little more for me. Would something that allows you to specify minigraphs like this work?
$config['frontpage']['minigraphs']['ids'] = "19418/19496,custom_traffic,Dist76-01.AMS4;12345,port_bits,NAME";
If I was stupid enough to believe in god, I would definitely accuse you of making baby Jesus cry with this.
Define rows and graphs within rows as arrays containing arrays of attributes, that way you don't even need to parse it.
Look at how we build the navbars from an array, this is probably how it should be done.
adam.