User (Legacy) Posted June 5, 2006 Report Share Posted June 5, 2006 What is the equivalent way to setup a legend to skip empty items as it worked in 6.2 using LegendBoxFlags.SkipEmpty? Link to comment Share on other sites More sharing options...
Software FX Posted June 5, 2006 Report Share Posted June 5, 2006 Dear Bob, This flag is not there anymore. Things are done differently in 7.0 (we´d like to think more intuitively) and it is done automatically. Instead you can just not add a Label to your series. I made a chart with 3 series and gave labels to Series 0 and 2 but not 1. chart1.Series[0].Text = "ser1"; chart1.Series[2].Text = "ser3"; Hope this helps. -c "Bob" <bhickman@russellmellon.com> wrote in message news:QRUb6eMiGHA.1560@webserver3.softwarefx.com... > What is the equivalent way to setup a legend to skip empty items as it > worked in 6.2 using LegendBoxFlags.SkipEmpty? > Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 5, 2006 Author Report Share Posted June 5, 2006 In the case I´m seeing, I have only a single series on the chart, and I never assign to it´s Text. The legend in this case always shows "Series 1". However, if I add a second series with Text, the second series shows in the legend and the first one doesn´t (as expected). "Software FX Support" <support@softwarefx.com> wrote in message news:xY7TYsNiGHA.1560@webserver3.softwarefx.com... > Dear Bob, > This flag is not there anymore. > Things are done differently in 7.0 (we´d like to think more intuitively) > and it is done automatically. > > Instead you can just not add a Label to your series. > I made a chart with 3 series and gave labels to Series 0 and 2 but not 1. > chart1.Series[0].Text = "ser1"; > chart1.Series[2].Text = "ser3"; > > Hope this helps. > > -c > > "Bob" <bhickman@russellmellon.com> wrote in message > news:QRUb6eMiGHA.1560@webserver3.softwarefx.com... > >> What is the equivalent way to setup a legend to skip empty items as it >> worked in 6.2 using LegendBoxFlags.SkipEmpty? >> > > Link to comment Share on other sites More sharing options...
Software FX Posted June 6, 2006 Report Share Posted June 6, 2006 Bob, This is by design. If you have never assigned ANY SeriesAttributes Text Property it will fill them all in, Series 1, Series 2, Series 3.... What exactly are you trying to do? If you have one series and turn on the legend what do you want to see without setting the chart1.Series[0].Text ? The legend will either contain "Series 1" or what you set it to. You cannot set it to String.Empty or null. -c "Bob" <bhickman@russellmellon.com> wrote in message news:Sz1Me0NiGHA.1560@webserver3.softwarefx.com... > In the case I´m seeing, I have only a single series on the chart, and I > never assign to it´s Text. > The legend in this case always shows "Series 1". > > However, if I add a second series with Text, the second series shows in > the legend and the first one doesn´t (as expected). > > "Software FX Support" <support@softwarefx.com> wrote in message > news:xY7TYsNiGHA.1560@webserver3.softwarefx.com... >> Dear Bob, >> This flag is not there anymore. >> Things are done differently in 7.0 (we´d like to think more intuitively) >> and it is done automatically. >> >> Instead you can just not add a Label to your series. >> I made a chart with 3 series and gave labels to Series 0 and 2 but not 1. >> chart1.Series[0].Text = "ser1"; >> chart1.Series[2].Text = "ser3"; >> >> Hope this helps. >> >> -c >> >> "Bob" <bhickman@russellmellon.com> wrote in message >> news:QRUb6eMiGHA.1560@webserver3.softwarefx.com... >> >>> What is the equivalent way to setup a legend to skip empty items as it >>> worked in 6.2 using LegendBoxFlags.SkipEmpty? >>> >> >> > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 8, 2006 Author Report Share Posted June 8, 2006 In this particular chart, I always have 1 or more series plotted. The first series never shows in the legend, because it is a set of bars that are used as a backdrop for the other series, which are points shown on top of the bars. If the chart is setup by the user without any of the supplementary series, so that there is only the single bar series, then we get the "Series 1" in the legend, and in the move from 6.2 to 7.0 we´ve lost the ability to suppress it since it won´t even ignore an empty string. What else can we do to get the same behavior we had in 6.2? "Software FX Support" <support@softwarefx.com> wrote in message news:WCDW7eXiGHA.1572@webserver3.softwarefx.com... > Bob, > This is by design. If you have never assigned ANY SeriesAttributes Text > Property it will fill them all in, Series 1, Series 2, Series 3.... > What exactly are you trying to do? > If you have one series and turn on the legend what do you want to see > without setting the chart1.Series[0].Text ? > The legend will either contain "Series 1" or what you set it to. You > cannot set it to String.Empty or null. > -c > > "Bob" <bhickman@russellmellon.com> wrote in message > news:Sz1Me0NiGHA.1560@webserver3.softwarefx.com... >> In the case I´m seeing, I have only a single series on the chart, and I >> never assign to it´s Text. >> The legend in this case always shows "Series 1". >> >> However, if I add a second series with Text, the second series shows in >> the legend and the first one doesn´t (as expected). >> >> "Software FX Support" <support@softwarefx.com> wrote in message >> news:xY7TYsNiGHA.1560@webserver3.softwarefx.com... >>> Dear Bob, >>> This flag is not there anymore. >>> Things are done differently in 7.0 (we´d like to think more intuitively) >>> and it is done automatically. >>> >>> Instead you can just not add a Label to your series. >>> I made a chart with 3 series and gave labels to Series 0 and 2 but not >>> 1. >>> chart1.Series[0].Text = "ser1"; >>> chart1.Series[2].Text = "ser3"; >>> >>> Hope this helps. >>> >>> -c >>> >>> "Bob" <bhickman@russellmellon.com> wrote in message >>> news:QRUb6eMiGHA.1560@webserver3.softwarefx.com... >>> >>>> What is the equivalent way to setup a legend to skip empty items as it >>>> worked in 6.2 using LegendBoxFlags.SkipEmpty? >>>> >>> >>> >> >> > > Link to comment Share on other sites More sharing options...
Software FX Posted June 8, 2006 Report Share Posted June 8, 2006 What do you want to get. If you remove that last series from the legend box, then you will end up with an empty series legend box, which doesn't look very good either. My suggestion is that you detect for this condition and hide the series legend. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 9, 2006 Author Report Share Posted June 9, 2006 An empty legend box is far preferable to seeing "Series 1". But now I can never ever get an empty legend box. My point is that I didn´t have to do this in 6.2 and now I do. It´s more work for me to have to detect this condition and hide the legend than it was before when I just set the legend to SkipEmpty and it would display empty automatically under this condition. I´ll add the code to detect this condition and hide the series legend, but I wanted to register the comment that this behavioral change was not necessarily good for everyone. It would be nice if it would at least suppress the item if I explicitly set the text to "". "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:AvuiB1yiGHA.1272@webserver3.softwarefx.com... > What do you want to get. If you remove that last series from the legend > box, then you will end up with an empty series legend box, which doesn´t > look very good either. > > My suggestion is that you detect for this condition and hide the series > legend. > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted June 9, 2006 Report Share Posted June 9, 2006 I agree with the fact that this may not be good for everybody, however, setting the text to "" is not good either because then there is no way to go back to displaying "Series 1", "Series 2", etc. which is useful for prototyping. The reason for the difference is due to implementation, in Chart FX 6.2, the collection of series legends was separate from the collection of series attributes, so you could clear one without clearing the other, now this sis not the case. I will analyze the situation to see if there is a way to have the best of both worlds. -- 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.