User (Legacy) Posted May 18, 2005 Report Share Posted May 18, 2005 Hi, I am trying to resolve a very strange problem with overlapping labels on the x-axis. See the attached screenshot (chart.png). Major Unit is set to Auto but the x-axis labels (they are quite long) are drawn as if Major Unit is 1. The values displayed on the X-axis are as follows (if they matter). 0 973069 1946138 2919206 3892275 4865344 5838413 6811481 7784550 8757619 9730688 I have also exported and attached a chart file (chart.chd). Any suggestions what's wrong with the chart and what can I do to make the chart display "normally"? Thanks in advance, Serge Link to comment Share on other sites More sharing options...
Software FX Posted May 25, 2005 Report Share Posted May 25, 2005 I'm unable to reproduce this problem. I read the attached chart file into a similar size chart and I get no overlapping of labels. I tried resizing the chart to many sizes but I never got the problem to occur. In your chart, does the overlapping disappear when you resize the chart area ever so slightly ? -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 26, 2005 Author Report Share Posted May 26, 2005 I think I have found the problem. It occurs if the following 2 conditions are true: - chart has CSE_FASTLEGENDS style - first x-axis label is much shorter than the others (e.g. 0 vs 1111111) Removing CSE_FASTLEGENDS style fixes the problem. So I have a question... what will be consequences for an app of not setting this style? Serge Link to comment Share on other sites More sharing options...
Software FX Posted May 26, 2005 Report Share Posted May 26, 2005 Removing CSE_FASTLEGENDS causes ChartFX NOT to calculate the size (in pixels) of the labels. If you set CSE_FASTLEGENDS you must set the Step as well as the automatic step calculation is based on the size of the labels. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.