Do you want to have a page that is refreshing itself? A kafka event is something that runs in the background. The data you have, is not available in your user context. I don’t think that there is a way to display it without having it persistable.
If it is running in user context or if your data is in the database, you could use a template grid with auto refresh.
So in your Kafka message, you put a Json with the timeseries data point in, right? So if it JSON, you can use the data mapping function of Mendix to convert it to a data model.
But I think the Kafka action will be handled in non user context. I don’t understand your process in that case. How has you implemented the conusme of the your Kafka message? This will be triggered in the background, rigtht? How do you decide that you want to receive kafka events, or not? What I could imagine is, that you consume all events and store them locally as persistent object, maybe only temporary for a specific amount of time, and then build your time series chart on that persistent data.