korthmat Posted October 29, 2008 Report Share Posted October 29, 2008 One of the products I worked on is a bar chart of production against an expected standard. The chart has two series, one for the actual amount, and one for the shortfall amount (if any). The chart is stacked, so that the shortfall bars, when they're present, appear on top of the actual bars. I draw a line across the chart at the level of the expected production. All this is working just fine. But (and you knew this was coming, right?), I've just gotten a batch of defects, and one of them complains that: The series labels ("shortfall" and "actual") in the legend box are reversed from what they were in the previous version of the software; and The expected line is appearing in the legend box, but shouldn't. The problem is, the solutions I've come up with cause problems of their own. I can reverse the order in the legend box by changing the order of the SeriesAttributes that I define in XAML, but this means that I wind up with the actual bars being stacked on top of the shortfall bars, which I don't want. Similarly, I was able to get the expected line to not show up in the legend, but to do that I had to remove the title, which I don't want. Is there any way I can control what gets put in the LegendBox, and in what order? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.