Skip to content

fix(stats): update chart labels, tooltips, and types - #48

Merged
mintybasil merged 3 commits into
mainfrom
zeroklaw/minor-stat-fixes
May 15, 2026
Merged

fix(stats): update chart labels, tooltips, and types#48
mintybasil merged 3 commits into
mainfrom
zeroklaw/minor-stat-fixes

Conversation

@zeroklaw

@zeroklaw zeroklaw commented May 15, 2026

Copy link
Copy Markdown
Member

Closes #47

Changes

Task 1: PoVW Cycle Composition

  • Renamed heading from "Cycles per Epoch — Market vs PoVW" to "PoVW Cycle Composition"
  • Added tooltip: "Shows the portion of PoVW cycles that were from market orders"
  • Updated legend labels: "Market Cycles", "PoVW Cycles"

Task 2: % Market Cycles per Epoch

  • Added tooltip: "Percent of total PoVW cycles that were from market orders"

Task 3: Removed redundant chart

  • Deleted the "PoVW Cycles per Epoch" BarChart (duplicate data already shown in the PoVW Cycle Composition chart)

Task 4: Total Non-Market PoVW Rewards Per Epoch

  • Renamed heading from "Non-Market PoVW Rewards" to "Total Non-Market PoVW Rewards Per Epoch"
  • Added tooltip: "Value of rewards paid for cycles that were not from market orders"
  • Added Y-axis labels: "ZKC" (left) and "USD" (right)
  • Simplified legend names: "Rewards (ZKC)" → "ZKC", "Rewards (USD)" → "USD"

Task 5: PoVW Reward Rate

  • Added tooltip: "Amount paid per million cycles"
  • Added Y-axis labels: "ZKC/Mil. Cycles" (left) and "USD/Mil. Cycles" (right)
  • Updated legend names: "Reward Rate (ZKC/MHz)" → "ZKC/Mil. Cycles", "Reward Rate (USD/MHz)" → "USD/Mil. Cycles"
  • Updated tooltip formatter to use "/Mil. Cycles" instead of "/MHz"

Task 6: Miner & Prover Count → Line Chart

  • Converted from AreaChart/Area to LineChart/Line
  • Preserved same stroke colors (#3b82f6 for miners, #22c55e for provers)
  • Removed fill and fillOpacity props, added dot={false}

Review follow-up (commit f4d5b01)

  • Reverted legend names from "Total Market/PoVW Cycles" to simpler "Market Cycles" / "PoVW Cycles"
  • Changed Y-axis labels from "ZKC/MHz" / "USD/MHz" to "ZKC/Mil. Cycles" / "USD/Mil. Cycles" to match legend unit names
  • Updated Reward Rate tooltip formatter to use "/Mil. Cycles" instead of "/MHz"

- Rename Cycles per Epoch to PoVW Cycle Composition, update labels
- Add tooltips to PoVW Cycle Composition and % Market Cycles charts
- Remove redundant PoVW Cycles per Epoch bar chart
- Rename Non-Market PoVW Rewards to Total Non-Market PoVW Rewards Per Epoch,
  add tooltip, add Y-axis labels (ZKC/USD), simplify legend names
- Add tooltip to PoVW Reward Rate, add Y-axis labels (ZKC/MHz, USD/MHz),
  update legend names to ZKC/Mil. Cycles and USD/Mil. Cycles
- Convert Miner and Prover Count from AreaChart to LineChart
@github-actions

github-actions Bot commented May 15, 2026

Copy link
Copy Markdown

Preview deployment

URL
Latest commit https://e3983d5d.boundless-profit-explorer.pages.dev
Branch alias https://head.boundless-profit-explorer.pages.dev

The branch alias URL always points to the latest commit on this PR.

@zeroklaw
zeroklaw marked this pull request as ready for review May 15, 2026 20:10
@zeroklaw
zeroklaw requested a review from mintybasil May 15, 2026 20:11
Comment thread src/components/tabs/Stats.tsx Outdated
type="monotone"
dataKey="marketCyclesT"
name="Market Cycles"
name="Total Market Cycles"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name="Total Market Cycles"
name="Market Cycles"

Comment thread src/components/tabs/Stats.tsx Outdated
axisLine={false}
tickLine={false}
width={60}
label={{ value: 'ZKC/MHz', angle: -90, position: 'insideLeft', style: { fill: '#9ca3af', fontSize: 10 } }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
label={{ value: 'ZKC/MHz', angle: -90, position: 'insideLeft', style: { fill: '#9ca3af', fontSize: 10 } }}
label={{ value: 'ZKC/Mil. Cycles', angle: -90, position: 'insideLeft', style: { fill: '#9ca3af', fontSize: 10 } }}

Comment thread src/components/tabs/Stats.tsx Outdated
axisLine={false}
tickLine={false}
width={60}
label={{ value: 'USD/MHz', angle: 90, position: 'insideRight', style: { fill: '#9ca3af', fontSize: 10 } }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
label={{ value: 'USD/MHz', angle: 90, position: 'insideRight', style: { fill: '#9ca3af', fontSize: 10 } }}
label={{ value: 'USD/Mil. Cycles', angle: 90, position: 'insideRight', style: { fill: '#9ca3af', fontSize: 10 } }}

…names

- Revert "Total Market Cycles" → "Market Cycles" and "Total PoVW Cycles" → "PoVW Cycles" for consistency
- Change Y-axis labels from "ZKC/MHz" and "USD/MHz" to "ZKC/Mil. Cycles" and "USD/Mil. Cycles" to match legend units
- Update tooltip formatter to use "/Mil. Cycles" instead of "/MHz"
@zeroklaw

Copy link
Copy Markdown
Member Author

Pushed a commit addressing all three review suggestions:

  1. Legend names: Reverted "Total Market Cycles""Market Cycles", and also "Total PoVW Cycles""PoVW Cycles" for consistency.
  2. Y-axis labels: Changed from ZKC/MHz and USD/MHz to ZKC/Mil. Cycles and USD/Mil. Cycles to match the legend unit names.
  3. Tooltip formatter: Also updated to use /Mil. Cycles instead of /MHz for consistency.

@zeroklaw
zeroklaw dismissed mintybasil’s stale review May 15, 2026 20:27

All feedback addressed in commit f4d5b01: legend names reverted, Y-axis labels aligned with Mil. Cycles, tooltip formatter updated. CI green.

@mintybasil
mintybasil merged commit a9cfd20 into main May 15, 2026
1 check passed
@mintybasil
mintybasil deleted the zeroklaw/minor-stat-fixes branch May 15, 2026 20:36
@mintybasil
mintybasil restored the zeroklaw/minor-stat-fixes branch June 12, 2026 19:49
@mintybasil
mintybasil deleted the zeroklaw/minor-stat-fixes branch June 22, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minor stat fixes

2 participants