I have an SSRS Line chart which plots supply points with square feet on the X axis and Price on the Y axis. Right now I don't really care about making it pretty just getting the lines to show up correctly. I am plotting the points and grouping by Subdivision/Builder.
So for example Subdivision A has builders Y and Z. I want to show different colors and lines for Subdivision A builder Y verses Subdivision A Builder Z.
The problem is that the lines are not connecting when a point for another subdivision builder combination breaks up that line.
The grey line and points below are not all connected as the yellow point is between the grey points so the grey line is not connected to all grey points.
How can I make the points of the same color (same Subdivision/Builder) connected via a line?
As I found out the hard way recently, this problem is often caused by
null
values in the data not being properly handled by SSRS. Without seeing your data, I can't be certain that's the cause, butnull
s were the culprit I encountered the same behavior.The solutions usually involve assigning values to the color of the
EmptyPoint
property on the Series, sometimes in conjunction with setting theEmptyPointValue
to specifynull
handling. I've found many references to this problem on the web, but I'll only post links to the best two, both of which are on StackExchange:IIf
, but sometimes this isn't an option, especially if the field you're grouping on has dynamic, unpredictable values, as my dataset did.The picture posted there depicts clear examples of the same type of line breaks. The user named trubs posted a code sample which illustrates how to set the EmptyPoint, in case where an Iif will work:
EmptyPoint
value &null
s are the root cause and simple hard-codedIIf
s won't do the trick. Although I have yet to get my line colors to match the point markers the way I'd like, I can verify that this solution at least gives you your lines back and allows you to assign a variety of colors to them. It's fairly simple and involves merely pasting in some VB code for a couple color properties.I was asked in the comments section to provide the details of the solutions, but don't want to plagiarize, so I'll simply do a long direct quote of JohnBob's answer:
I hope this helps.