Hi!
We recently upgraded to 2014.1 and I noticed my line charts changed.
Previously I could, in the chart datasource, set the leading and trailing DBNULL datapoints to zero and the line for those data points would NOT be draw. That seems to have changed.
How can I create multiple lines on the same chart but off different number of data points and connected lines between them?
The gist of the problem is I'm creating line segments that appear to be connected but change in visible appearance. For instance consider the data points A - F. Points A, B, C create a line of two segments that is solid and red. The line segments between C and the remaining data points are another color but the lines are dotted.
How can I do this? What I created in the past are two columns in the datasource one containing A, B and C and another C, D, E and F. Something like, forgive the text grid:
col1 col2
A dbnull
B dbnull
C C
dbnull D
dbnull E
dbnull F
The color palette is set to red and, say, blue. The lines I add respect that order and are set to line style solid ans dash respective.
The result for col1 is the line after point C stays there to the end of the graph as a horizontal line. The line for col2 suffers a similar fate--it draws a horizontal line from the Y axis to C. Ideally I like *no* line segment drawn for dbnull. So the line for col1 would end at point C and the line for col2 would begin at point C. This way I can convey to the user a transition at that point.
Attached is a snapshot from my application. In my situation the color palette is the same for both lines but one is dotted and the other solid.
This used to work prior to 2014.1. I suspect something changed when I upgraded.
Any ideas are appreciated!
Craig
I may have answered my own question with help from the prolific blogging team at Infragistics:http://ko.infragistics.com/samples/aspnet/chart/null-data-handling
in short the NullHandling propert on the LineChart property:
ultraChart1.LineChart.NullHandling = NullHandling.DontPlot;
Hi Craig,
Thank you for contacting Infragistics Developer Support.
I am glad that you have resolved your issue. Let me know if you have any additional questions.