Is “While imprisoned at Youli, he expanded the eight trigrams of Fuxi” true?

based on fact

The Records of the Grand Historian, 'Annals of Zhou', records that 'the Earl of the West was imprisoned at Youli and expanded the eight trigrams into sixty-four hexagrams.' Official history confirms he expanded the trigrams, but the novel's depiction of his divination and ability to calculate all heavenly secrets is an embellishment.

King Wen of Zhou

In official histories, he is the virtuous leader of the western诸侯 at the end of the Shang dynasty, while in novels he is endowed with the ability to devise brilliant plans and predict the course of fate.

Other claims about King Wen of Zhou