在浏览器中直接试用
本页直接运行 @nhatnguyet/ziwei、bazi、numerology、lunar 程序包。修改输入,下方命盘与 TypeScript、Python 代码随之更新。 API 文档
输入
出生日期(公历)
性别
所有计算都在您的浏览器中完成,出生信息不会发送到任何地方。
import { castZiWei, ziWeiSvg } from "@nhatnguyet/ziwei";
const chart = castZiWei({
date: "1990-09-19", time: "20:00", gender: "male",
name: "Nguyen Van An", lang: "zh", viewYear: 2026,
});
const svg = ziWeiSvg(chart, { theme: "light" }); // = renderChartSvg(chart.raw)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="zh", view_year=2026)
svg = zi_wei_svg(chart, theme="light")