User (Legacy) Posted August 4, 2004 Report Share Posted August 4, 2004 Please see the attached graph. Can you tell me why chartfx insists on the strange spacing for the x axis? I opened the data with: chart.OpenData(COD.Values, 11, 4) The series include hidden points hence why you dont see 11 different stacked items. Any ideas welcomed Thanks Link to comment Share on other sites More sharing options...
Software FX Posted August 4, 2004 Report Share Posted August 4, 2004 A couple of facts: 1) Hidden points will still take space. For example in a side-by-side bar chart, a value, then a hidden and then a value, will leave a "hole" in between, where the hidden value was suppose to go. This is by design. 2) It looks like what you want is a Stacked bar chart, however, it seems that you are doing something else. From a default chart, all you need to do to achieve a chart with the bars arranged the way you want is: chart.Stacked = Stacked.Normal; Look like (I'm guessing here since I don't have your code) that you may be stacking some of the series only (Series[i].Stacked = true) but leaving some others as default (side-by-side). Even if the values of these extra series is Hidden, you will still get the space (as I explained in 1). -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 4, 2004 Author Report Share Posted August 4, 2004 Hi, Ok. To answer your question I stack all bars: chart.Gallery = SoftwareFX.ChartFX.Gallery.Bar chart.Stacked = SoftwareFX.ChartFX.Stacked.Normal So say I want 4 category bars on the x axis, these bars can have upto 11 different stacks (one for each status). Should I open my data like this chart.OpenData(COD.Values, 3, 10) If so when I want to do a hidden stack I say this chart.Value(iteratorStatus.CurrentPosition - 1, iterator.CurrentPosition - 1) = SoftwareFX.ChartFX.Internet.Server.Chart.Hidden this is exactly what I am doing in psuedo code this is what I am doing For each category for each status if category has status 'Add Stack to bar chart.Value(statusID(yaxis) , CategoryID(xaxis)=value else 'Dont add Stack, Add Hidden Stack chart.Value(statusID(yaxis), CategoryID(xaxis)=hidden end if next status next category Thanks Steve "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:3JllB5ieEHA.3080@webserver3.softwarefx.com... A couple of facts: 1) Hidden points will still take space. For example in a side-by-side bar chart, a value, then a hidden and then a value, will leave a "hole" in between, where the hidden value was suppose to go. This is by design. 2) It looks like what you want is a Stacked bar chart, however, it seems that you are doing something else. From a default chart, all you need to do to achieve a chart with the bars arranged the way you want is: chart.Stacked = Stacked.Normal; Look like (I'm guessing here since I don't have your code) that you may be stacking some of the series only (Series[i].Stacked = true) but leaving some others as default (side-by-side). Even if the values of these extra series is Hidden, you will still get the space (as I explained in 1). -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 4, 2004 Author Report Share Posted August 4, 2004 Ignore, Solved it. Cheers "Steve Flitcroft" <asyahubby@hotmail.com> wrote in message news:IWtpIIjeEHA.3152@webserver3.softwarefx.com... > Hi, > Ok. To answer your question I stack all bars: > chart.Gallery = SoftwareFX.ChartFX.Gallery.Bar > chart.Stacked = SoftwareFX.ChartFX.Stacked.Normal > > So say I want 4 category bars on the x axis, these bars can have upto 11 > different stacks (one for each status). Should I open my data like this > chart.OpenData(COD.Values, 3, 10) > > If so when I want to do a hidden stack I say this > > chart.Value(iteratorStatus.CurrentPosition - 1, iterator.CurrentPosition - > 1) = SoftwareFX.ChartFX.Internet.Server.Chart.Hidden > > this is exactly what I am doing > > in psuedo code this is what I am doing > > For each category > for each status > if category has status > 'Add Stack to bar > chart.Value(statusID(yaxis) , CategoryID(xaxis)=value > else > 'Dont add Stack, Add Hidden Stack > chart.Value(statusID(yaxis), CategoryID(xaxis)=hidden > end if > next status > next category > > Thanks > Steve > > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message > news:3JllB5ieEHA.3080@webserver3.softwarefx.com... > A couple of facts: > > 1) Hidden points will still take space. For example in a side-by-side bar > chart, a value, then a hidden and then a value, will leave a "hole" in > between, where the hidden value was suppose to go. This is by design. > > 2) It looks like what you want is a Stacked bar chart, however, it seems > that you are doing something else. > > From a default chart, all you need to do to achieve a chart with the bars > arranged the way you want is: > > chart.Stacked = Stacked.Normal; > > Look like (I'm guessing here since I don't have your code) that you may be > stacking some of the series only (Series[i].Stacked = true) but leaving some > others as default (side-by-side). Even if the values of these extra series > is Hidden, you will still get the space (as I explained in 1). > > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
Software FX Posted August 4, 2004 Report Share Posted August 4, 2004 Care to share what was wrong ? It might help other people in this forum. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 9, 2004 Author Report Share Posted August 9, 2004 I was iterating around an xmlDataDocument and using the currentposition as my key for the coordinate, which was incorrect, nothing to do with chartfx but my logic! Thanks "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:rSyqRYleEHA.3152@webserver3.softwarefx.com... > Care to share what was wrong ? It might help other people in this forum. > > -- > 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.