Liuyao term

Trigrams

A trigram is a three-line yin/yang figure. The lower and upper trigrams combine into a six-line hexagram in I Ching and Liuyao.

The eight three-line figures

The names and conventional images are Qian 乾 (Heaven), Dui 兑 (Lake), Li 离 (Fire), Zhen 震 (Thunder), Xun 巽 (Wind), Kan 坎 (Water), Gen 艮 (Mountain), and Kun 坤 (Earth). Each is one of the eight possible arrangements of three yin/yang lines.

Read each trigram from bottom to top. Using 1 for yang and 0 for yin, their sequences are Qian 111, Dui 110, Li 101, Zhen 100, Xun 011, Kan 010, Gen 001, and Kun 000. Here the leftmost digit is the bottom line, matching Yarrow’s input order rather than an unlabelled diagram.

How they form a hexagram

Lines 1–3 form the lower trigram; lines 4–6 form the upper trigram. Eight upper choices and eight lower choices give 64 combinations. Moving lines can change either or both trigrams.

In Yarrow’s Liuyao engine, the two trigrams determine the primary figure and the Najia branches for inner/lower and outer/upper positions. The hexagram’s palace is a separate eight-palace assignment; do not assume that it is always the upper trigram. Images such as water or thunder are symbolic associations, not forecasts of weather or physical events.

Frequently asked questions

Is a trigram the same as a hexagram?

No. A trigram has three lines; a hexagram has six, arranged as a lower and an upper trigram.

Does the upper trigram always determine the palace?

No. Yarrow looks up the hexagram’s palace in an eight-palace table. It is not simply copied from the upper trigram.

Scope, sources, and limits

These definitions describe Yarrow’s current Najia, eight-palace, five-phase, Six Spirit, and xunkong rules, not every school. Calendar fields come from lunar-javascript. Traditional meanings are symbolic interpretations, not scientific prediction evidence or medical, legal, or financial advice.

Calendar library documentation: lunar-javascript

Content updated: 27 October 2026. Responsibility and corrections: editorial policy