This application provides a method, apparatus, computer-readable medium, and electronic device for generating the chronological order of case facts. The method includes: acquiring at least one first
case material; constructing a first prompt text based on the at least one first
case material and a first preset prompt word; inputting the first prompt text into a first preset model to obtain main timeline information generated by the first preset model based on the first prompt text, the main timeline information including at least one event information arranged in chronological order, the event information including an event summary and
time information corresponding to the event summary; and displaying the main timeline information on a page in a timeline format, the timeline including at least one node graphic arranged in sequence and text information of the event information corresponding to each node graphic. This application can help users efficiently, quickly, and intuitively grasp the factual information of a case, thereby improving work efficiency.