Hello, I am using a 2D Spline Chart and have my Y-axis showing data value, 1-100 and my x-axis shows time using just a double precision number starting at 0. I am manually building the table from a couple data sources that are not databound. I am using a ChartDataDoubleClicked event to detect when a user double clicks on a datapoint. I then need to know that node's value and x-axis time.
I understand getting the value is very easy, just double value = e->DataValue; But I can't find out at all how to grab the y-axis time i manually added for that specific node. Is there a way of retrieving that? I am using multiple lines (series) in this chart as well if that matters.
Any help would be appreciated as to how to grab my x-axis value at that node when the event is fired. Thanks!
scatter chart supports series. if you are using the DataSource property, just set ScatterChart.UseGroupByColumn = true and ScatterChart.GroupByColumn to the index of a series identifier column.
if you are using the Series collection, just add multiple XYSeries and they will be plotted separately.
i tried using a scatter chart, but It does not support series. Is there anyway to do a scatter chart with series (multiple lines)? Thanks!
Rulevoid said: I would like to see up to the maximum (20 in this case) and just have the first line end and have no nodes for time 11-20. Is this possible?
the Spline chart's x-axis will range from zero to the # of points in the series with the least points. you might want to consider using a scatter chart, which allows you to specify the x-coordinate of each point. you can set ScatterChart.ConnectWithLines = true to make it look like a line or spline chart.
I found this out myself. This is in case anyone else has the same question.
private: System::Void ucLineChart_ChartDataDoubleClicked(System::Object^ sender, Infragistics::UltraChart::Shared::Events::ChartDataEventArgs^ e)
{
double oldTime = Double::Parse(ucLineChart->Series[e->DataRow]->GetPoints()[e->DataColumn]->Label);
....
}
Also, I have a question on how when using a 2D spline to show the graph up to the largest data value when using a series where one lines has values up to time 10 then another has values up to time 20, right now, it will only show up to time 10. I would like to see up to the maximum (20 in this case) and just have the first line end and have no nodes for time 11-20. Is this possible?