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
You can get the X and Y values with:
private void XamChart_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
HitTestArgs hitArgs = this.xamChart.HitTest(e);
double xValue = hitArgs.XValue;
double yValue = hitArgs.YValue;
}
Hi,
Has this feature been added now? Or is it still not possible? I am looking at achieving a partial drill down i.e. when user selects a range or a point, i want to drill down only for that area.
Thanks.
Unfortunately, this is not possible with our current xamChart API.