showing data with chart

i was using streamlit for show realtime data with chart and the data from udp, but the problem is the chart not going well, its like delay to show the data then what should i do to fix it?