User (Legacy) Posted May 24, 2004 Report Share Posted May 24, 2004 My chart sometimes needs to display a Y-axis title, and sometimes not. But, I've noticed a problem. If I: 1) display Chart #1 without a title, it looks OK. 2) display Chart #2 with a title, the title shows OK. 3) display Chart #1 again, without a title, the chart is shifted somewhat to the right, with a noticeable "margin" on the left where the title from Chart #2 was shown. No title is shown, but for all subsequent charts the control is apparently leaving room for the title. When I need to suppress the Y-axis title, I'm doing it like this: cfxChart.Axis(AXIS_Y).Title = "" Is there a way to suppress the title, and recover the space that it occupied when switching from a Y-axis titled chart to one without a Y-axis title? My environment is ChartFX ClientServer, with VB6. TIA. GaryG Link to comment Share on other sites More sharing options...
Software FX Posted May 25, 2004 Report Share Posted May 25, 2004 To remove the title do: ChartFX1.LeftGap = 1 ChartFX1.Axis(AXIS_Y).Title = "" Chart FX 5.x NEVER decreases the margins as a result of an operation, it will only INCREASE the margins in order to fit new elements. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 27, 2004 Author Report Share Posted May 27, 2004 "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:MhG4lloQEHA.3152@webserver3.softwarefx.com... > To remove the title do: > > ChartFX1.LeftGap = 1 > ChartFX1.Axis(AXIS_Y).Title = "" > > Chart FX 5.x NEVER decreases the margins as a result of an operation, it > will only INCREASE the margins in order to fit new elements. Hmmm...in that case, I would like to request that this be added for a future version. As it now stands, if a chart sometimes displays a title, when a new chart is shown without a title, there is a noticable margin where the title was shown before. This means that the same chart, displayed on two different occassions, will look slightly different due to the margins not being the same. Note: the same issue affects AXIS_Y2 - if that axis displays values and/or a title, the space reserved for them is never reclaimed, even if subsequent charts do not use that axis. If you are interested, I can send you screen shots illustrating the problem. GG > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
Software FX Posted May 28, 2004 Report Share Posted May 28, 2004 This is already changed in Chart FX 6.2. The code that I gave you though will have the same effect if you do it always like that. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 28, 2004 Author Report Share Posted May 28, 2004 "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:wp7I6DLREHA.3080@webserver3.softwarefx.com... > This is already changed in Chart FX 6.2. > > The code that I gave you though will have the same effect if you do it > always like that. Doh! You are correct...after playing around with the settings for LeftGap and RightGap (and, making sure that the axis Title gets cleared before setting LeftGap/RightGap), it does work just fine. Thanks! BTW - Is version 6.2 for ClientServer available? GG > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
Software FX Posted May 28, 2004 Report Share Posted May 28, 2004 Do you mean COM ? No. Chart FX 6 is only available for .NET and Java at this time, a COM version is coming soon. Don't ask me when :-) -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.