Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm generating charts and I'm letting the user specify the date range. The problem is that there might be anywhere from 5-1000 data points and the values might be from 0 to 1,000,000.
I'm primarily using Open Flash Charts2 and Google Charts API.
I need to generate the Y axis step value and X step value and X labels. I think the most X labels I can fit really is about 30. So for a 30 day range that's really easy. Just show every label. But if they have 500 data points what do I do? 5000 / 30 = 166 x step value? Same with Y step value?
Does every single person that comes across this kind of charting problem just re-invent the wheel, or are there good libraries for this stuff, or is there some simple formulas for making this trivial to do manually?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dynamically Charting with Variable Dates and Data
by moritz (Cardinal) on Jan 12, 2009 at 08:36 UTC | |
by Anonymous Monk on Jan 12, 2009 at 22:57 UTC | |
|
Re: Dynamically Charting with Variable Dates and Data
by Anonymous Monk on Jan 12, 2009 at 22:23 UTC |