From: Nathaniel G. A. <nat...@ya...> - 2003-09-22 19:44:48
|
Alls the code does is: 1) find the widest x-axis label 2) multiply that by the number of labels to see if they can all fit 3) if not, see if every 2nd, 3rd, 4th, ... will fit until it finds one that does. I suppose we could expose an interface for this so you could alter the algorithm. --- Sven Weber <sve...@ex...> wrote: > > > > thanx for the answer. > > I read that other thread about time series, but my problem has basically nothing to do with time > series. > > The basic problems is this: > > You have more x-axis values than jcharts can print. So jcharts has to choose (with some > algorithm) which labels it should print and which not. > > But in some cases e.g. in time series certain labels make a lot more sense to the human observer > than others (e.g the start of each day). > > But it's not limited to time series. Let's say you have x-values from 0-873. Then a human viewer > would maybe prefer labels of 0, 100, 200 ... 800, 900 and not some mathematically correct but > "odd" numbers like 113, 226... > > And I looked for a possibility to control the labels that the jcharts algorithm should choose > for printing. > > > > Sven > > > > > > > > --- On Sun 09/21, Nathaniel G. Auvil < nat...@ya... > wrote: > > From: Nathaniel G. Auvil [mailto: nat...@ya...] > > To: jch...@li... > > Date: Sun, 21 Sep 2003 19:55:43 -0700 (PDT) > > Subject: Re: [jCharts-users] control of the x-axis labels > > > > <br>Time Series charts are not available in the current release of jCharts. There appears to be > some<br>demand for this type of chart as of late, so I am bumping it up on the priority list for > the next<br>release.<br><br><br><br>--- Sven Weber <sve...@ex...> wrote:<br>> <br>> > Hi,<br>> <br>> <br>> <br>> and first of all hello from a jcharts newbie.<br>> <br>> <br>> <br>> > I worked thru the jcharts examples and find jCharts is really easy to use, so thanx. :-)<br>> > <br>> Now I have my first question:<br>> <br>> I need to create time series charts. The data > usually consists of one value per 15 minutes. The<br>> charts should show a day, week or month > of the measurement data. <br>> <br>> So I have 96 values per day, 576 value per week and around > 2900 values per months.<br>> <br>> Now I can create a string from the time stamp of the value > and add that string to the x-axis<br>> labels, but so far I found no way to let jcharts know, > which x-axis labels should be printed and<br>> which not. E.g. if I create a "day chart" then it > would be ok to have a label printed at every<br>> full hour and maybe every half hour. If it's a > "week chart" then it would be ok to see time<br>> stamps from 12pm, 6am, 12am and 6pm of each > day, but not something like 3.45pm or 5.15am.<br>> <br>> So the basic problem is that I have too > much values so jcharts can not print each x-axis label,<br>> but I found no way to tell jcharts > which labels should be printed and which not!<br>> <br>> Is there a solution for my > problem?<br>> <br>> <br>> <br>> CU<br>> <br>> Sven<br>> <br>> <br>> <br>> <br>> <br>> <br>> > <br>> _______________________________________________<br>> Join Excite! - > http://www.excite.com<br>> The most personalized portal on the Web!<br>> <br>> <br>> > -------------------------------------------------------<br>> This sf.net email is sponsored > by:ThinkGeek<br>> Welcome to geek heaven.<br>> http://thinkgeek.com/sf<br>> > _______________________________________________<br>> jCharts-users mailing list<br>> > jCh...@li...<br>> > https://lists.sourceforge.net/lists/listinfo/jcharts-users<br><br><br>=====<br>http://nathaniel-auvil.blog-city.com/<br><br>__________________________________<br>Do > you Yahoo!?<br>Yahoo! SiteBuilder - Free, easy-to-use web site design > software<br>http://sitebuilder.yahoo.com<br><br><br>-------------------------------------------------------<br>This > sf.net email is sponsored by:ThinkGeek<br>Welcome to geek > heaven.<br>http://thinkgeek.com/sf<br>_______________________________________________<br>jCharts-users > mailing > list<br>jCh...@li...<br>https://lists.sourceforge.net/lists/listinfo/jcharts-users<br> > > _______________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |