Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
224
Get X-Axes Value for a datapoint
posted

Well I have a datapoint value in a xamchart ............i wanna gets its corresponding x-axes value so that I can further drill down in the chart based on that x-axes Value..........

 

code is 

 

void xamChart2_MouseDown(object sender, MouseButtonEventArgs e)
        {


            HitTestArgs test = this.xamChart2.HitTest(e);
            DataPoint dp = test.SelectedObject as DataPoint;
           
            if (dp != null)
            {
                //TODO: Code application logic here
                //MessageBox.Show(dp.Value.ToString());
                if (_currDrill == MAX_DRILL) return;

                dp.Value //Gives Y-Axes value I want corresponding X-Axes Value........

               this.DrillDown();
                MessageBox.Show();
                //this.BuildChart("X-AxesValue");
            }
           
            e.Handled = true;

        }

 

Regards,

Umar