This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, I have attached a couple of screenshots for you. As you can see, until you zoom in on the chart the text objects seem to be off. Any ideas on this? Thanks. |
|
|
Hi Klogue, The content is always displayed against the left hand edge of the stripes. In the case that the stripes are thin, this causes the content to appear outside of the box. Depending on what you want it to look like when the stripe is thin, you may need to add template triggers to the ContentTemplate of the stripe lines to change the font size or margins when the width of the chart control is small. I hope that points you in the right direction, let me know if you have further questions about this. -Jason Fauchelle |
|
|
Hey Jason, Managed to get it sorted. I've encountered a weird one. I have a toggle that changes my line to % values. This works fine switching back a forth but only when I am no zoomed in. If I zoom in and toggle it to the % it is fine but when I toggle it back the data changes to nonsense. Any ideas on this? Thanks. |
|
|
Hi Klogue, Sorry, I don't fully understand the zooming issue. Could you please send a few screen shots, or event a repro project if possible. -Jason Fauchelle |
|
|
Hi Jason, I have attached screen shots. It seems that the Y axis is failing to go back to the original max but when I debug it the variable is correct. This only happens when I am zoomed in and change it. Thanks for your input. |
|
|
Hi Klogue, This is a weird one, which I'm having trouble reproducing. Would you be able to provide a simple repro project for me to look into more closely. Is the data display fine, but the Y axis just not showing correctly? -Jason Fauchelle |
|
|
Hi Jason, Sorry about the delay. I don't think it is possible to send a repo project. It seems to be just the Y axis. I haven't looked into since as I have moved on to other things. I have another question, as always. How do I grab an X value, let's say its a DateTime object, using a logical or physical point? Thanks again. |
|
|
Hi Jason, Any thoughts on the previous post? Thanks |
|
|
Hi Klogue, To get the kind of values displayed on the axis, you'll want to use the IAxisValueConverter that the axis is using (Or an instance of the same type of converter). The converter can be obtained through the ValueConverter property of the ChartAxis. The GetDataObjectAt method of the converter will take a logical axis plotting position, and returns an object (say a DateTime) that corresponds to that plotting position. If you have a physical/pixel position, you'll first need to convert it to the logical axis plotting position. To do this, you need to use the ConvertPhysicalToLogicalPoint method on a DataSeries that is being plotted on the Chart control. This accepts and returns points, so you'll need a Y value as well, but can ignore the Y result of it if you only need an X axis value. Please let me know if you have further questions about this, or if it's not quite what you were after. -Jason Fauchelle |
|
|
Hey Jason, Worked perfect. Thanks again. |
|