Jump to content
Software FX Community

korthmat

Members
  • Posts

    13
  • Joined

  • Last visited

korthmat's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. With a few parameter tweaks to get me back within the spec, this does indeed work! Thanks.
  2. I'm currently using ChartFX 7, version 7.0.2281.32010. I'm attempting to draw a short horizontal line segment with an AnnotationArrow object. Using this code: AnnotationArrow objectiveLine = new AnnotationArrow(); objectiveLine.AllowModify = false; objectiveLine.AllowMove = false; if (index != 3) objectiveLine.Border.Style = DashStyle.Dash; objectiveLine.Border.Color = OBJECTIVE_LINE_COLOR; objectiveLine.EndCap.Height = 0; objectiveLine.EndCap.Width = 0; objectiveLine.Height = 1; objectiveLine.Width = (chart.ChartAreaRectangle.Width - chart.PlotAreaMargin.Left - chart.PlotAreaMargin.Right) / 4; objectiveLine.Attach(index + 1, objective); annots.List.Add(objectiveLine); ...I get the lines I need, but they're not quite horizontal. Is there any way to get this to work?
  3. Just following up on this one-- For the most part, this seems to work with RC1. Right now, in a demo app, I've got this for my CustomGridLine declaration: <cfx:CustomGridLine Value="100" StrokeThickness="2" Stroke="{Binding Source={StaticResource customGridLineSettings}, Path=LineBrush}"> <cfx:CustomGridLine.Title> <cfx:Title Content="{Binding Source={StaticResource customGridLineSettings}, Path=Text}" Foreground="{Binding Source={StaticResource customGridLineSettings}, Path=LineBrush}" HorizontalAlignment="Left" /> </cfx:CustomGridLine.Title> </cfx:CustomGridLine> This allows me to change the stroke color, title content, and title color. However, I also need to be able to bind against HorizontalAlignment--and as soon as I change HorizontalAlignment="Left" to HorizontalAlignment="{Binding Source={StaticResource customGridLineSettings}, Path=HorizontalAlignment}", I get an InvalidCastException ("Specified cast is not valid.")
  4. It's a familiar topic for me, what can I say? I've been playing around with the rose chart bits in RC1, and it's getting very close to what I need to replace our homebrewed component. However, there are a few things I haven't been able to figure out. I need to be able to apply a template to the bars, so that we display them in a style similar to our other charts. Is this possible? If so, how? What hooks are available? I noticed that point labels can be made visible, which is good because I need 'em. But they don't seem very amenable to changing their display style. Is there any way to apply a template to those point labels? In particular, the problems I've been having with them include: They always appear in the center of the bar; I need them to display at the end, outside the bar. The angle of the labels changes with the angle of the bar. This isn't a problem for a bar drawn horizontally to the right, but for the one drawn directly opposite it, you'd better be able to read upside-down. They shrink with the size of the bar. I've got a number of bars where that makes the label unreadable. One of the options we use with our rose chart is to display the dealer number in the center of the chart. I played around using annotations to do this, but I wasn't able to get the positioning right. Is there a way to do it, and if so, how? Thanks in advance, --M
  5. 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?
  6. Great. With that, I might just be able to ditch our homebrewed rose chart control, which I'd like to do for consistency's sake, if nothing else. Thanks again, --M
  7. Some time back in this post I mentioned that I needed a rose chart, which you graciously provided (thank you for that, by the way). However, there's a number of things that either I haven't figured out how to do, or that aren't supported. In particular: Is it possible to hide all of the gridlines? I've been able to hide the circular gridlines (except for the outermost one), but not the others. The initial announcement of the rose chart said that point labels weren't supported. Has this changed? The product I'm using the rose chart for has a user-specified internal radius, as well as a user-specified number of bars (and hence, starting angle for the first bar of the chart). As a result, it would be very nice if we could bind to the Rose gallery object...
  8. I don't normally reply to myself, but editing timed out. I'd expect this to produce red text in the title: <cfx:CustomGridLine Value="50" Stroke="Black" StrokeThickness="2"> <cfx:CustomGridLine.Title> <cfx:Title Foreground="Red" HorizontalAlignment="Right">Expected Sales</cfx:Title> </cfx:CustomGridLine.Title> </cfx:CustomGridLine> Unfortunately, it doesn't seem to do so.
  9. Thanks! Unfortunately, I do actually need to be able to bind to those attributes, but at least I know it wasn't something stupid that I was doing. Now, to warn my colleagues...
  10. Right now, I'm working on a graph that depicts sales as a percentage of expected sales. One of the requirements is that I have to draw a line across the graph at 100% of expected sales. A CustomGridLine would seem to be the solution. The problems start when I try to customize the CustomGridLine. In particular, the user should be able to specify: the color of the line; the text the line is labeled with; the color of the text (which should match the color of the line); and the alignment of the text (i.e., whether it appears on the left, on the right, or in the middle of the graph). So far, the only one of those three that I've been able to get is changing the text itself. This is the code I'm using right now: <cfx:CustomGridLine Value="1" Stroke="{Binding Source={StaticResource propertyBag}, Path=HundredPercentLineColor}" StrokeThickness="2"> <cfx:CustomGridLine.Title> <cfx:Title Content="{Binding Source={StaticResource propertyBag}, Path=HundredPercentLineText}" Foreground="{Binding Source={StaticResource propertyBag}, Path=HundredPercentLineColor}" TextAlignment="{Binding Source={StaticResource propertyBag}, Path=HundredPercentLineTextAlignment}" /> </cfx:CustomGridLine.Title> </cfx:CustomGridLine>This causes VS2008 to complain that Stroke isn't a DP, and even if I take that out so I can work on something else, I still can't change the text from the left side to the right side of the chart.
  11. On several of our charts, we'd like to have the bars drawn with a linear gradient, where we only need to specify the basic color. The BrushConverter in ChartFX.WPF.Converters seems like it should be a perfect solution, but even after following the examples in the quickstart doc, I can't get it to work; tracing the bindings shows that the BrushConverter is always returning null. How is it that you're supposed to use the BrushConverter?
  12. I'm looking at the source code from our previous version right now, and it doesn't appear that we need any of those other variants. About the only thing that we would need that might be unusual and that isn't evident from the example I posted, is the ability to specify the starting angle, e.g., that the first bar should be drawn horizontally and to the right, with the rest following from that. Thanks! --M
  13. We're busily porting our app to WPF, and one of the things I'm responsible for is a report that includes a "rose chart" (example attached). Is it possible to do something like this in the WPF version of ChartFX?
×
×
  • Create New...