Strange bug in THorizBarSeries
Posted: Fri Aug 21, 2009 7:01 am
Hello,
I am facing a strange problem with THorizBarSeries but I am not able to reproduce this error outside my app, so I will try to explain it here. I am using the latest TChart 8.05 with Turbo Delphi Pro and WinXP.
I have a chart with a THorizBarSeries and by default the left axis is set to Inverted. I need the bars to be continues (touch each other) so I set the Bar Width to 100% and no border visible. I load my data to the plot, zoom in it looks ok, like plot1.gif. Now, I have an option for the user to invert the axis and load the data again, so the chart looks like plot2.gif. After a lot of tests I realized that there is something wrong with the border. If I enable the border to be visible then as you can see in the case where by left axis is not inverted (plot4.gif) the border is drawn over the bar and this is why the gaps appear although it is not clear to me why the gap appears when border is not visible.
Can anyone please share some thoughts and where to look inside the TChart code in order to resolve this?
Kindest regards
http://img341.imageshack.us/img341/8416/plot1.gif
http://img518.imageshack.us/img518/9693/plot2.gif
http://img33.imageshack.us/img33/5995/plot3.gif
http://img341.imageshack.us/img341/1476/plot4.gif
I am facing a strange problem with THorizBarSeries but I am not able to reproduce this error outside my app, so I will try to explain it here. I am using the latest TChart 8.05 with Turbo Delphi Pro and WinXP.
I have a chart with a THorizBarSeries and by default the left axis is set to Inverted. I need the bars to be continues (touch each other) so I set the Bar Width to 100% and no border visible. I load my data to the plot, zoom in it looks ok, like plot1.gif. Now, I have an option for the user to invert the axis and load the data again, so the chart looks like plot2.gif. After a lot of tests I realized that there is something wrong with the border. If I enable the border to be visible then as you can see in the case where by left axis is not inverted (plot4.gif) the border is drawn over the bar and this is why the gaps appear although it is not clear to me why the gap appears when border is not visible.
Can anyone please share some thoughts and where to look inside the TChart code in order to resolve this?
Kindest regards
http://img341.imageshack.us/img341/8416/plot1.gif
http://img518.imageshack.us/img518/9693/plot2.gif
http://img33.imageshack.us/img33/5995/plot3.gif
http://img341.imageshack.us/img341/1476/plot4.gif