Skip to content

Add interactive HTML output via Plotly#5

Open
nikfot wants to merge 3 commits into
mainfrom
feature/html-plotly-output
Open

Add interactive HTML output via Plotly#5
nikfot wants to merge 3 commits into
mainfrom
feature/html-plotly-output

Conversation

@nikfot

@nikfot nikfot commented May 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds HTML output format (-e html) to the visualize command
  • Renders all 5 metric charts (CPU, memory, system load, swap, IO) as a single interactive HTML file
  • Features: zoom, hover tooltips, series toggles, unified hover mode
  • Plotly is a lazy optional dependency -- only imported when HTML output is requested

Usage

pip install plotly
vmstat-visualizer visualize vmstat.log -e html

Test plan

  • Verified plotly_renderer produces valid HTML
  • Verified lazy import -- tool still works without plotly installed for PNG/SVG output
  • Verified clear error message when plotly is missing and HTML is requested

nikfot added 3 commits May 16, 2026 09:39
When -e html is passed to the visualize command, renders all five
metric charts (CPU, memory, system load, swap, IO) as a single
interactive HTML file with zoom, hover tooltips, and series toggles.

Plotly is a lazy import -- only loaded when HTML output is requested.
Users need to install it separately: pip install plotly
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.

1 participant