TAChart: BarSeries and ZeroLevel lazarus / 55-TAChart ---------------------------------------------------------------------- wp · 2011-08-27 12:36 When changing the zerolevel of a bar series, it seems to be that the zero level is substracted from the data values. For examples, if the bar y values are 20, 30, 40, and the zero level is 10, the bars are drawn from 0 to 10, 20 and 30, respectively, instead of from 10 to 20, 30 and 40, respectively. Is this a misunderstanding on my side, or is it a bug? ---------------------------------------------------------------------- Ask · 2011-08-27 15:18 Yes, it is a bug introduced by a recent refactoring. TAChart's test suite needs a lot of work... Should be fixed in r32070 BTW, since you seems to be able to read German, can you please look at http://www.lazarusforum.de/viewtopic.php?f=18&t=5274? I can not understand what the poster wants, and Google translation does not help much ;-) ---------------------------------------------------------------------- wp · 2011-08-27 16:05 Thank you for the fix. Quotecan you please look at http://www.lazarusforum.de/viewtopic.php?f=18&t=5274? To be honest, I don't understand what he wants to do. What's more important is the second posting stating that the issue is gone since switching to r32006. ---------------------------------------------------------------------- wp · 2011-08-27 18:26 Quotecan you please look at http://www.lazarusforum.de/viewtopic.php?f=18&t=5274? After logging into this forum the issue became clearer to me. The poster wanted to paint several charts to a common png bitmap using the PaintOnCanvas method, but the entire chart was black except for the series and the legend (see the code in the posting). But as already mentioned above, the error was gone when using a new svn version. ---------------------------------------------------------------------- Ask · 2011-08-27 23:47 Ok, thanks. ---------------------------------------------------------------------- snoewchen · 2017-03-03 10:42 It seems that this bug (issue 20096 (http://bugs.freepascal.org/view.php?id=20096)) surfaced again. I created a minimalistic Application to demonstrate the behaviour and also some screen-shots to show the difference (expected and observed outcome). As far as I can tell, the svn-version 53904 (2017-01-09 12:57:36) is the last version that works as expected, starting with the next version (53905 - 2017-01-09 13:35:09) the zero-level-bug surfaces again. According to the wiki (http://wiki.freepascal.org/How_do_I_create_a_bug_report) a bug should be rather reopened than reported as new - but how do I reopen this bug? ---------------------------------------------------------------------- wp · 2017-03-03 11:16 Quote from: snoewchen on March 03, 2017, 11:42:49 amI created a minimalistic Application to demonstrate the behaviour and also some screen-shots to show the difference (expected and observed outcome). [...] According to the wiki (http://wiki.freepascal.org/How_do_I_create_a_bug_report) a bug should be rather reopened than reported as new - but how do I reopen this bug? Could you post the demo application showing the issue? (Just pas, lfm, lpi, and lpr files, packed into a shared zip) It is ok for me if the bug is reported here. To reopen a bug there's a Reopen button in the bug tracker. But I am not sure, maybe this button is available only to the original reporter. ---------------------------------------------------------------------- snoewchen · 2017-03-03 11:54 Also included in the zip file is the res-file (without the res-file I get an error when I try to run the application from within lazarus (I am working on linux)). I tried to set most properties in the object inspector (the range of the left axis is already set to "Max = 600" and ("UseMax = true"). If you click the check box, the "ZeroLevel" of the TBarSeries is set to "100" (the graph uses a random data source). After you clicked the check-box:   - svn-version 53904: the bars have the expected height   - svn-version 53905: the bars are too high (I guess I don't have the necessary permissions to reopen a bug - or - I am blind (also a possibility)) ---------------------------------------------------------------------- wp · 2017-03-03 12:10 Should be fixed in r54335. Please test and report back. I was refactoring the Draw method of the bar series (and others) because the old implementation did not respect axis transformations, and forgot about this "little" detail... Are you a registered user of the bug tracker, and are you logged in? You must be logged in in order to be able to make any changes. ---------------------------------------------------------------------- snoewchen · 2017-03-03 14:04 wp - thank you very much! That was fast! Works perfectly now. And yes - I am a (newly) registered user of the bug tracking system - my access level at the moment is "reporter" - I guess that role does not have sufficient privileges to reopen an existing bug. (I guess the function should appear in the row "Main | My View | View Issues | Report Issue | ..." - or maybe a button at "Resolution = fixed"). Anyways, no need to reopen the bug. Thank you again.