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