You aren't by any chance making parts for the aerospace industry?
I took the liberty of extrapolating your test data to see what @E1cid's excellent code comes up with.
505066 doesn't get started immediately but then works steadily.
505050 has a 10 minute period when it produces nothing:
[{"id":"1443affe2a15c0ed","type":"inject","z":"134e3f08233c7beb","name":"Go","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":220,"wires":[["ebf178cea972b2c8"]]},{"id":"a4041c0857047ac8","type":"change","z":"134e3f08233c7beb","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"(\t $series := $distinct( $$.payload.ProductionNumber);\t [\t {\t \"series\": $series,\t \"data\": $series@$k.[\t [\t $$.payload[ProductionNumber = $k].{\"x\": $.LogDateTime, \"y\":$.DayCounter}\t ]\t ],\t \"labels\": []\t }\t ]\t)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":220,"wires":[["21123f8a19da0927"]]},{"id":"ebf178cea972b2c8","type":"function","z":"134e3f08233c7beb","name":"function 28","func":"msg.payload = [{ \"LogDateTime\": \"2023-04-06T10:01:02.003Z\", \"DayCounter\": 1, \"ProductionNumber\": 505050 },\n{ \"LogDateTime\": \"2023-04-06T10:02:02.003Z\", \"DayCounter\": 2, \"ProductionNumber\": 505050 },\n{ \"LogDateTime\": \"2023-04-06T10:03:02.003Z\", \"DayCounter\": 3, \"ProductionNumber\": 505050 },\n{ \"LogDateTime\": \"2023-04-06T10:24:02.003Z\", \"DayCounter\": 4, \"ProductionNumber\": 505050 },\n{ \"LogDateTime\": \"2023-04-06T10:24:41.003Z\", \"DayCounter\": 5, \"ProductionNumber\": 505050 },\n{ \"LogDateTime\": \"2023-04-06T10:25:23.003Z\", \"DayCounter\": 6, \"ProductionNumber\": 505050 },\n{ \"LogDateTime\": \"2023-04-06T10:25:44.003Z\", \"DayCounter\": 7, \"ProductionNumber\": 505050 },\n{ \"LogDateTime\": \"2023-04-06T10:26:09.003Z\", \"DayCounter\": 8, \"ProductionNumber\": 505050 },\n{ \"LogDateTime\": \"2023-04-06T10:26:41.003Z\", \"DayCounter\": 9, \"ProductionNumber\": 505050 },\n { \"LogDateTime\": \"2023-04-06T10:10:30.003Z\", \"DayCounter\": 1, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:11:31.003Z\", \"DayCounter\": 2, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:12:33.003Z\", \"DayCounter\": 3, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:13:35.003Z\", \"DayCounter\": 4, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:14:40.003Z\", \"DayCounter\": 5, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:15:44.003Z\", \"DayCounter\": 6, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:16:42.003Z\", \"DayCounter\": 7, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:17:40.003Z\", \"DayCounter\": 8, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:18:30.003Z\", \"DayCounter\": 9, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:19:31.003Z\", \"DayCounter\": 10, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:20:32.003Z\", \"DayCounter\": 11, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:21:33.003Z\", \"DayCounter\": 12, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:22:33.003Z\", \"DayCounter\": 13, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:23:32.003Z\", \"DayCounter\": 14, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:24:31.003Z\", \"DayCounter\": 15, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:25:30.003Z\", \"DayCounter\": 16, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:26:29.003Z\", \"DayCounter\": 17, \"ProductionNumber\": 505066 },\n { \"LogDateTime\": \"2023-04-06T10:27:27.003Z\", \"DayCounter\": 18, \"ProductionNumber\": 505066 },\n]\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":290,"y":220,"wires":[["a4041c0857047ac8"]]},{"id":"21123f8a19da0927","type":"ui_chart","z":"134e3f08233c7beb","name":"","group":"3231577618700483","order":2,"width":"20","height":"8","label":"chart","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#ff8000","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":610,"y":220,"wires":[[]]},{"id":"3231577618700483","type":"ui_group","name":"Demo","tab":"12fb331e96d4e554","order":1,"disp":true,"width":"20","collapse":false,"className":""},{"id":"12fb331e96d4e554","type":"ui_tab","name":"Demo","icon":"dashboard","disabled":false,"hidden":false}]
Is this the sort of graph you envisage?
You don't say how many different production numbers there are, but note that by default only 35 different line colours are available.
@E1cid : My first try creating my own data only had values for 505050. This resulted in an error "Series not array". Can your Jsonata be tweeked to fix this?