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 there, I am finding that if I have a chart with datetime x axis and double y axis values, if the y-value is 0 then when you use the tracking element to display the values, the y value is displayed as a negative value when it should be showing 0. Here is some code I used for the linechartdemo to reproduce the problem in the samples explorer protected void BuildDateTimeDoubleData(int seriesCount, int dataCount, double startMin, double startMax, double min, double max, double down, double up, DateTime start, TimeSpan interval)
{
double[] values = new double[seriesCount];
for (int i = 0; i < seriesCount; i++)
{
SetData(i, new List
Thanks Kamal |
|
|
Hello Kamal Thanks for pointing this out and sending the repro code. This will be resolved in the next nightly build. Jason Fauchelle |
|
|
Hi Jason, I am trying to use the tracking element with data that requires double/double datapoints. I am finding that the series.GetY(x) always returns a NaN value (I can get the values if I simply use the logical point for Y however the rest of the code which sets the ellipsis on the line will not work)...would you be able to provide a sample using the tracking element for double/double dataobjects? Thanks Kamal |
|
|
Hi further to this last bug, the values are incorrect when plotting the line series with a reversed Y axis and X axis placed on the top. A sample would be really helpful as we have a major release coming up and we need this functionality asap. Thanks, Kamal |
|
|
Hello Kamal I have attached a simple project demonstrating all the things you have described. To run the sample, make sure to add a reference to your copy of the Mindscape.WpfElements.dll. I have not been able to reproduce the issue where GetY(x) always returns NaN. This method should only return NaN when a y value does not exist. For example when there is a break (null value) in the data. I was also unable to see invalid values when the Y axis is reversed. Feel free to modify the attached sample to reproduce the issue and send it back so we can look into it further. Jason Fauchelle |
|
|
Hi Jason, I was able to reproduce the issue on the sample you provided. The upload would not work for me so I have copied the code from MainWindow.xaml.cs::: namespace ChartTrackingSample { public partial class MainWindow : Window { public MainWindow() { InitializeComponent();
} } Thanks. Kamal |
|
|
Thanks for the repro Kamal The GetY method previously only supported data that was in order from low X values to high X values. In the next nightly build, it will support data that is ordered in the opposite direction. Jason Fauchelle |
|