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.
Here is a sample about how to display data point labels. The page load event has some code for showing the labels. It sets the this.UltraChart1.ScatterChart.ChartText[0].Visible property.
I found this API page for the ChartText property.
Please look at the sample and its code and see if that works. That data point label implementation might be specific to the sample. If it is not useful, I can forward your post to developer support, and they can open a case for you.
Elizabeth Albert
Localization Engineer
I'm sorry, I did not mean annotations, I meant the data point labels (like the data points on the scatter chart). I haven't used them and can't figure out how to set and display them in code. I'm using a datatable with 3 columns; label, column1, & column2. Then I am adding rows with datapoint label, value1, value2. Then binding to the scatter chart, but it isn't displaying the datapoint label.
Here is a sample that shows how to set Annotations in the .aspx file.
You can also view the documentation on annotations.
Let me know if there's anything else!
Thank you very much. How can I put my own annotations on the data points via code?
The type ChartData is a DataSet in the samples project which provides sample data to the charts. If you have installed the samples, you can find it here:
C:\Users\Public\Documents\Infragistics\NetAdvantage [version]\ASP.NET\Samples\App_Code\VB\WebCharts\ChartData1.vb (or C:\Documents and Settings\All Users\Documents\Infragistics...)
This is just sample data, so anywhere ChartData is used, you can instead use your own data source as a DataSet.
The documentation on the Scatter Line chart can be found in our online help.
If you would like more help with this, I can forward your post to Developer Support, and they can provide assistance with setting up a sample.