0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PyGWalkerを日本語化する方法

Last updated at Posted at 2025-10-14

日本語の設定方法

PygWalkerを日本語化するには、PygWalkerのベースとなるGraphic Walkerのドキュメントに記載されているオプションを利用します。詳細は以下のリポジトリを参照してください。
Graphic Walker GitHubリポジトリ

以下のように、i18nLangオプションにja-JPを指定するだけです。

walker = pyg.walk(
    df,
    i18nLang="ja-JP"
)

チャート画面比較(上:英語、下:日本語)

設定画面比較(上:英語、下:日本語)

おまけ: カスタムUIカラーの指定

uiThemeオプションを使用すると、UIの色を細かくカスタマイズできます。ドキュメントにある色をアンバーにするもののPython版が下記のものになります。

IUIThemeConfig = {
    "light": {
        "background": 'amber-100',
        "foreground": 'amber-950',
        "primary": 'amber-950',
        'primary-foreground': 'amber-50',
        "muted": 'amber-200',
        'muted-foreground': 'amber-500',
        "border": 'amber-300',
        "ring": 'amber-950',
    },
    "dark": {
        "background": 'amber-900',
        "foreground": 'amber-50',
        "primary": 'amber-50',
        'primary-foreground': 'amber-800',
        "muted": 'amber-700',
        'muted-foreground': 'amber-400',
        "border": 'amber-700',
        "ring": 'amber-300',
    },
}

walker = pyg.walk(
    df,
    i18nLang="ja-JP",
    uiTheme=IUIThemeConfig
)

以上です

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?