Hi,
The graph i am trying to replicate in its basic form is below. I’d like “Scheduled time" on the y-axis. Days of the month on the X-axis “event time“ plotted and the reason encoded by colour. The y-axis will have to auto-adjust as scheduled time could be 24hrs but it needs to only focus on a specific round like in this case 19:00 I am giving the code I have written however it is not working
{
"chart": { "zoomType": "x" },
"time": { "useUTC": false },
"title": { "text": "Time of Events per Day" },
"xAxis": {
"type": "datetime",
"dateTimeLabelFormats": {
"day": "%d-%b",
"week": "%d-%b",
"month": "%d-%b"
}
},
"yAxis": {
"title": { "text": "Time of Day" },
"type": "datetime",
"dateTimeLabelFormats": {
"hour": "%H:%M",
"minute": "%H:%M"
},
"min": 61200000,
"max": 75600000
},
"tooltip": {
"shared": false,
"xDateFormat": "%A, %d %b %Y",
"pointFormat": "<b>{series.name}</b><br>Time: {point.y:%H:%M}"
},
"plotOptions": { "series": { "marker": { "radius": 4 } } },
"series": [
{
"name": "DOSES_DISPENSED",
"type": "scatter",
"color": "green",
"data": [
"map",
[
"filter",
["getColumn", 0, 1, 2],
["==", ["get", ["item"], 1], "DOSES_DISPENSED"]
],
{
"x": ["get", ["item"], 0],
"y": ["get", ["item"], 2]
}
]
},
{
"name": "TOO_EARLY",
"type": "scatter",
"color": "purple",
"data": [
"map",
[
"filter",
["getColumn", 0, 1, 2],
["==", ["get", ["item"], 1], "TOO_EARLY"]
],
{
"x": ["get", ["item"], 0],
"y": ["get", ["item"], 2]
}
]
},
{
"name": "DOSES_POSTDISPENSED",
"type": "scatter",
"color": "red",
"data": [
"map",
[
"filter",
["getColumn", 0, 1, 2],
["==", ["get", ["item"], 1], "DOSES_POSTDISPENSED"]
],
{
"x": ["get", ["item"], 0],
"y": ["get", ["item"], 2]
}
]
}
]
}
I have also attached a sample of the data



