• #財務分析
  • #比例縮尺
  • #技術ドキュメント
未分類

比例縮尺財務諸表のスケーリングロジック

概要

比例縮尺財務諸表では、貸借対照表(BS)と損益計算書(PL)を同じスケールで描画することで、企業の財務状況を視覚的に比較できるようにしています。

スケーリングの基準

globalMaxValue の計算

const globalMaxValue = computed(() => {
  // 全企業・全期間の総資産と収益の最大値を取得
  let maxValue = 0
  for (const company of companies) {
    for (const period of company.periods) {
      const totalAssets = getTotalAssets(period)  // 総資産
      const revenue = period.pl.revenue           // 収益
      maxValue = Math.max(maxValue, totalAssets, revenue)
    }
  }
  return maxValue
})

BS(貸借対照表)の高さ計算

const getBsHeight = (company): number => {
  const totalAssets = getTotalAssets(company.currentData)  // 総資産
  const scaleFactor = totalAssets / globalMaxValue
  const availableHeight = maxHeight - TITLE_RESERVE
  return availableHeight * scaleFactor
}

重要: BSの高さは 総資産 で決まり、純資産ではありません。

PL(損益計算書)の高さ計算

const getPlHeight = (company): number => {
  const revenue = company.currentData.pl.revenue  // 収益
  const scaleFactor = revenue / globalMaxValue
  const availableHeight = maxHeight - TITLE_RESERVE
  return availableHeight * scaleFactor
}

よくある誤解

「純資産と収益が近いのにBSとPLの高さが違う」

これは誤解です。

例: Micron Technology (MU) 2018年

項目金額 ($M)
総資産 (Total Assets)43,376
純資産 (Equity)33,261
収益 (Revenue)30,391
  • 純資産と収益の差: 33,261 - 30,391 = 2,870 (約3,000)
  • しかし、BSの高さは 総資産 (43,376) で決まる

正しい比率計算:

PLの高さ / BSの高さ = 収益 / 総資産
                    = 30,391 / 43,376
                    = 0.70 (70%)

つまり、PLはBSの約70%の高さになるのが正しい比例縮尺です。

alt text

BSの構成(貸方側)

総資産 = 流動負債 + 固定負債 + 純資産
43,376 = 5,757 + 4,358 + 33,261

純資産はBSの一部であり、BSの高さを決めるのは総資産(借方側の合計)である。

検証方法

比例縮尺が正しいかを検証するには:

  1. 対象期間の 総資産収益 を取得
  2. 収益 / 総資産 の比率を計算
  3. 画面上のPLとBSの高さ比率と比較
  4. 誤差が1%未満なら正常

検証例 (WBD 2024年):

  • 総資産: 104,938
  • 収益: 39,566
  • 期待比率: 39,566 / 104,938 = 0.3771
  • 実測比率: 0.3806
  • 誤差: 0.35% ✓

関連ファイル

  • apps/web/app/components/financial-quiz/ProportionalFinancialStatementsAnimated.vue
    • globalMaxValue computed: 行 ~200
    • getBsHeight 関数: 行 ~220
    • getPlHeight 関数: 行 ~230