Skip to content

Open code and data

Try the library in your browser

This page runs the actual @nhatnguyet/ziwei, bazi, numerology and lunar packages. Change the input and the chart and the TypeScript and Python code below follow. API reference

Input

Birth date (Gregorian)
Gender

Everything is computed in your browser; your birth data is not sent anywhere.

Zi Wei chart: Nguyen Van AnZi Wei chart for 19 Sep 1990, hour Xu. Drawn with the Nhat Nguyet open library.Wu ZiParentsGreedy WolfWLiterary GloryCelestial WeepingCelestial EmptinessPatent of HonourYear BreakerGeneral15-24PeakJi ChouFortune/VirtueCelestial BlessingWKeGiant GateWEarthly VoidCelestial LongevityCourt TallyDragon VirtuePetitioner25-34DeclineWu YinPropertyMilitary SongPQuanCelestial MinisterECelestial HalberdLiterary MelodyEarthly ReleaseCelestial KitchenWhite TigerFlying Blade35-44IllnessJi MaoCareerSunPLuCelestial BeamPRight AssistantPeach BlossomEight SeatsCelestial NobilityCelestial VirtueCelestial JoyCelestial ReleaseBlessing VirtueJoy Deity45-54DeathGeng ChenFriends/SubordinatesSeven KillingsWPhoenix PavilionCelestial PunishmentState SealReleasing SpiritTerrace AideCelestial InjuryCelestial NetWidow StarMourning GuestIllness Symbol55-64TombXin SiTravelCelestial MechanismPCelestial TalentBell StarShattering StarDirect SymbolGreat Loss65-74ExtinctionRen WuHealthJie KongPurple StarECelestial LeaderCelestial FortuneCelestial MessengerGrand DukeHidden Soldier75-84ConceptionGui WeiWealthBodyJie KongNo major starSpinning TopCelestial VoidYoung YangMagistrate85-94NurtureJia ShenChildrenArmy BreakerWProsperityCelestial HorseCelestial CharmCelestial PhysicianSolitary StarFlowing HazeMourningScholar95-104GrowthYi YouSpouseNo major starSword RamEarthly RobberDipper LordRed PhoenixYoung YinStrongman105-114BathingBing XuSiblingsXun KongPurityECelestial TreasuryPDragon PoolEarthly SnareCanopyOfficial SymbolGreen Dragon115-124YouthDing HaiLife PalaceXun KongMoonEJiLeft AssistantThree TerracesGrace LightCelestial OfficialFire StarMonthly VirtueRobbery ShaAnnual Literary StarDeath SymbolSmall Loss5-14PrimeNHAT NGUYETZi Wei ChartNguyen Van AnSolar date19 Sep 1990Lunar dateDay 1, month 8, Geng Wu yearBirth hourXu (19:00-21:00)Yin-yangYang MaleNa yinEarth by the RoadsideBureauEarth FiveLife, BodyLife at Hai, Body at WeiE, P: exalted, prosperousF, N: favorable, neutralW: weakFour TransformationsLuQuanKeJinhatnguyet.orgDecade luck: East Asian age at the foot of each palace
Zi Wei chart: Nguyen Van AnZi Wei chart for 19 Sep 1990, hour Xu. Drawn with the Nhat Nguyet open library.Wu ZiParentsGreedy WolfWLiterary GloryCelestial WeepingCelestial EmptinessPatent of HonourYear BreakerGeneral15-24PeakJi ChouFortune/VirtueCelestial BlessingWKeGiant GateWEarthly VoidCelestial LongevityCourt TallyDragon VirtuePetitioner25-34DeclineWu YinPropertyMilitary SongPQuanCelestial MinisterECelestial HalberdLiterary MelodyEarthly ReleaseCelestial KitchenWhite TigerFlying Blade35-44IllnessJi MaoCareerSunPLuCelestial BeamPRight AssistantPeach BlossomEight SeatsCelestial NobilityCelestial VirtueCelestial JoyCelestial ReleaseBlessing VirtueJoy Deity45-54DeathGeng ChenFriends/SubordinatesSeven KillingsWPhoenix PavilionCelestial PunishmentState SealReleasing SpiritTerrace AideCelestial InjuryCelestial NetWidow StarMourning GuestIllness Symbol55-64TombXin SiTravelCelestial MechanismPCelestial TalentBell StarShattering StarDirect SymbolGreat Loss65-74ExtinctionRen WuHealthJie KongPurple StarECelestial LeaderCelestial FortuneCelestial MessengerGrand DukeHidden Soldier75-84ConceptionGui WeiWealthBodyJie KongNo major starSpinning TopCelestial VoidYoung YangMagistrate85-94NurtureJia ShenChildrenArmy BreakerWProsperityCelestial HorseCelestial CharmCelestial PhysicianSolitary StarFlowing HazeMourningScholar95-104GrowthYi YouSpouseNo major starSword RamEarthly RobberDipper LordRed PhoenixYoung YinStrongman105-114BathingBing XuSiblingsXun KongPurityECelestial TreasuryPDragon PoolEarthly SnareCanopyOfficial SymbolGreen Dragon115-124YouthDing HaiLife PalaceXun KongMoonEJiLeft AssistantThree TerracesGrace LightCelestial OfficialFire StarMonthly VirtueRobbery ShaAnnual Literary StarDeath SymbolSmall Loss5-14PrimeNHAT NGUYETZi Wei ChartNguyen Van AnSolar date19 Sep 1990Lunar dateDay 1, month 8, Geng Wu yearBirth hourXu (19:00-21:00)Yin-yangYang MaleNa yinEarth by the RoadsideBureauEarth FiveLife, BodyLife at Hai, Body at WeiE, P: exalted, prosperousF, N: favorable, neutralW: weakFour TransformationsLuQuanKeJinhatnguyet.orgDecade luck: East Asian age at the foot of each palace
TypeScript
import { castZiWei, ziWeiSvg } from "@nhatnguyet/ziwei";

const chart = castZiWei({
  date: "1990-09-19", time: "20:00", gender: "male",
  name: "Nguyen Van An", lang: "en", viewYear: 2026,
});
const svg = ziWeiSvg(chart, { theme: "light" }); // = renderChartSvg(chart.raw)
Python
from nhatnguyet import cast_zi_wei, zi_wei_svg

chart = cast_zi_wei(date="1990-09-19", time="20:00", gender="male",
                    name="Nguyen Van An", lang="en", view_year=2026)
svg = zi_wei_svg(chart, theme="light")