If you want to chart on the same graph things with very different orders of magnitude size (and some things varying in size by orders of magnitude) then my first thought would be to choose a log scale for one axis. It doesn't look like this module supports that natively, but nothing stops you from taking logs of your values. (log($x)/log(10) would be traditional.) Now all values fit sensibly on one graph and you don't have to figure out how to split them.

Common examples of data which we normally scale this way are sound volume and earthquake intensity. Both are normally quoted as a log of intensity.

If you really want to take your original approach, I would take the largest dataset, and group it with things which are within a factor of 10 of its size. Then put everything else in group 2. But then you have to figure out how to handle the situation where a dataset keeps jumping from one chart to another, and you can't get a good graph of response time variations of more than a couple of orders of magnitude.

I'd suggest trying the log scale first.


In reply to Re: [OT] Grouping/clustering of values by tilly
in thread [OT] Grouping/clustering of values by jplindstrom

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.