This question is locked. New answers and comments are not allowed.
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.
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.
Thanks,
D.
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.
private void ChartItemToolTipOpening(ItemToolTip2D tooltip, ItemToolTipEventArgs args) { ServiceReference1.WebService1SoapClient getDrill = new ServiceReference1.WebService1SoapClient(); getDrill.drillCompleted += new EventHandler<ServiceReference1.drillCompletedEventArgs>(getDrill_drillCompleted); getDrill.drillAsync(args.ItemIndex+1); chart.Height = 200; chart.Width = 300; chart.DefaultView.ChartLegend.Visibility = System.Windows.Visibility.Collapsed; chart.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Inside; chart.DefaultView.ChartTitle.Content = "Detail View"; LineSeriesDefinition LineSer = new LineSeriesDefinition(); chart.DefaultSeriesDefinition = LineSer; chart.ItemsSource = tempChart.ItemsSource; tooltip.Content = chart; }void getDrill_drillCompleted(object 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.
Thanks,
D.
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.