I have a drill-down chart that starts as a CandleStick and the toolTip brings up a Line chart. My problem is that I am pulling my data from a web service, and I am not getting the correct data when I put my mouse over a "candle stick". On the first try I will get "No Data Series", and no matter what "candle stick" I put my mouse over next I will get the data for the first one I moused over.
ChartItemToolTipOpening(ItemToolTip2D tooltip, ItemToolTipEventArgs args)
ServiceReference1.WebService1SoapClient getDrill =
chart.Height = 200;
chart.Width = 300;
chart.DefaultView.ChartLegend.Visibility = System.Windows.Visibility.Collapsed;
chart.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Inside;
LineSeriesDefinition LineSer =
chart.DefaultSeriesDefinition = LineSer;
chart.ItemsSource = tempChart.ItemsSource;
tooltip.Content = chart;
sender, ServiceReference1.drillCompletedEventArgs e)
tempChart.ItemsSource = e.Result;
Now, I have tried clearing the tempChart and the chart with a ToolTipClosing event. I have tried to put a delay on showing the ToolTip to make sure it did not have to do with the amount of time it took to get the data. I am kind of at a loss, because I have spent way too much time on something like this.
If you have any suggestions, please let me know.
P.S. I am bad at putting my problems into words, if you don't understand what is going on, let me know and I will try to make it clearer.