How to Connect Color Gaps in Tableau Line Graphs

Say you have a line graph with a parameterized date range. You want the selected range to be a different color than the rest of the graph, but Tableau gives you something like this:

If you've ever been there, don't panic! The fix is quite simple. Assuming you already have a calculated field for the color (something along these lines):

[Order Date] >= [Start Date] AND [Order Date] <= [End Date]

... all you need to do is change that calculation to an Attribute on your Marks card:

Now your line graph should be connected!

Author:
Stefani Hermanto
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2026 The Information Lab