Having a number type field on x-axis and y-axis and then putting a field in color field well does not create separate lines per category

Hello,

I am trying to add a line plot visual based on two number data types fields (in my case number of days on x-axis and value for y-axis coming from a field called capacity). I get a single line plot based on this.

But I want to get separate lines based on another field called “ID”. This “ID” field is of data type string and has discreet values like 001, 002 etc. So I basically want a separate line for each ID. Hence I added that field in the color field well.

This however does not results in separate continuous lines but half a line gets plotted for points for ID 001 then the line is broken and then some line gets plotted for ID 002 etc.

This all works fine if I change the field on my x-axis from a number type to a date type instead. When I give date field on x-axis then I get separate colored lines per ID.

How can I get this with a number of days field instead (i.e., when x-axis is a number type field)?

Thanks,

Hi @aditi.sony ,

Can you check if you have enabled continuous line for missing data, considering for each ID you may not have data against all days?

Thanks,
Prantika

This worked Prantika… thanks very much for help!