Does anyone have some sample code for a simple scatter-line chart? I have done many of the 2D charts, but haven't done the scatter chart yet. I've seen one example of a scatter-line chart and can't get it to display. Any help would be greatly appreciated. My Y axis is min 0 & max 50 with a single increment of 25. My X Axis is Planets, with the various planets plotted on the chart (assigned values between 5 and 45). I get no errors, but I can't get it to display.
Hello Daryl,A support request has been opened for your inquiry. A sample will be sent to you in the support request through our help support system.
Please use the following link to log onto your account at Infragistics.Com:
<https://ko.infragistics.com/Membership/MySupport.aspx>
Once you are logged onto your account, go to My Support Activity to view the progress of this support request.
Please let me know if you have any questions.
Thank you.
Sincerely,Mike D.Developer Support EngineerInfragisticswww.infragistics.com/support
I will forward your post to Developer Support. They should be able to assist you with displaying the data point labels.
No good, still get index out of bounds. Here is how I am filling my data table:
dt.Columns.Add(
"label", GetType(String))
"column1", GetType(Double))
"column2", GetType(Double))
dt.Rows.Add(
New Object() {"datapoint a", 5, 20})
New Object() {"datapoint b", 7, 25})
New Object() {"datapoint c", 9, 35})
New Object() {"datapoint d", 11, 15})
New Object() {"datapoint e", 13, 28})
New Object() {"datapoint f", 15, 22})
New Object() {"datapoint g", 17, 22})
New Object() {"datapoint h", 19, 25})
New Object() {"datapoint i", 21, 33})
New Object() {"datapoint j", 23, 15})
New Object() {"datapoint k", 25, 28})
New Object() {"datapoint l", 27, 27})
New Object() {"datapoint m", 29, 20})
New Object() {"datapoint n", 31, 25})
New Object() {"datapoint o", 33, 31})
New Object() {"datapoint p", 35, 15})
New Object() {"datapoint q", 37, 28})
New Object() {"datapoint r", 39, 22})
iScatterChart.DataSource = dt
iScatterChart.DataBind()
iScatterChart.ScatterChart.ChartText(0).Visible = True
And of course, the "datapoint x" label is what I'm expecting to display.
Yes, please try to set the property after databinding. The sample does databinding before setting the property.
I've reviewed that sample, but get an index out of bounds error when addressing ChartText property. Should I be addressing it after I databind?