missing data in line chart

missing data in line chart

Forum member · Jan 30, 2009
I'm creating a line chart and I have a problem to solve. My chart has four x values, say 06,07,08,09 in my records that I have to create charts for some of the records may not have the first two or three years. is there a way, say you only have year 08 & 09 to plot those, Ive tried just leaving the values blank in my lineseries but that doesn't work such as this. MyLineSeries1.Values.Add(New Single() {, , dr("0708SS"), dr("0809SS")}) Mike

Re: missing data in line chart

Support · Feb 2, 2009
Hello Mike, In your case you can not use the series.Values.Add method which takes the float array. You will have to use the IndexedLineValue object or the overloaded method of the series.Values.Add method which takes the float value and the potision as parameters. Following is a sample code. IndexedLineSeries lineSeries1 = new IndexedLineSeries("Website A"); lineSeries1.Values.Add(5,1); lineSeries1.Values.Add(3,2); If you want a full sample code then please send an email to our [^a|mailto:support@cete.com|Support Team^] and they can send you an example. Thanks, ceTe Software Support Team.

Re: missing data in line chart

Forum member · Feb 2, 2009
Thank you, that is what I needed.

Re: missing data in line chart

Forum member · Feb 2, 2009
Looks like I did find one thing that is happening and that is that the ValuePositionDataLabel does not show the value if you only have one point I am using MyLineSeries3.DataLabel = New ValuePositionDataLabel(True, False, False). If I have two or more data point then the value shows but if I only have one point the vaule is not showing, is the a way to make this show for only one point.

Re: missing data in line chart

Support · Feb 2, 2009
Hello, We are able to see this behavior when using the DataLabel with only one point. We will check with the developers regarding this and we will let you know if this is a desired behavior or if there is any other way to show the single point. Thanks, ceTe Software Support Team.

Re: missing data in line chart

Forum member · Feb 2, 2009
If I am only going to have one point is there something else I could use to plot that point and show the value other than using a lineseries

Re: missing data in line chart

Support · Feb 3, 2009
Hello Mike, In order to add any values to a chart you will have to use the Series object. In a Line chart you will have to use the LineSeries class. You can show the single point also by using the Marker class. Below is a sample line of code for this. //Shows a circle in place of the point. lineSeries1.Marker = Marker.GetCircle(7); We do see the problem with the DataLabel not showing the values when there is a single point. We have forwarded this issue over to developers to look into it further. We will post a message in this forum once we have a fix for this issue. Thans, ceTe Software Support Team.

Re: missing data in line chart

Forum member · Feb 3, 2009
I'm using the marker, it's the data value I'm needing to show also

Re: missing data in line chart

Support · Feb 3, 2009
Hello Mike, We have identified the issue with the data label not showing when there is only one point. We will post updates as soon as we have resolved this. Thanks, ceTe Software Support Team.

Re: missing data in line chart

Support · Jul 22, 2009
Hello Mike, We have fixed this issue with the DataLabel and now you can see the data label when there is only one point. Can you please send an email to our [^a|mailto:support@cete.com|Support Team^] so that they can give you the download link for the dlls with fix? Thanks, ceTe Software Support Team.